mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 03:42:28 +02:00
ps3/petitboot: Run petitboot at first startup
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17324 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3e52337274
commit
a336902e47
@ -1,3 +1,18 @@
|
||||
#!/bin/sh
|
||||
# Run petitboot at first startup, otherwise run a login.
|
||||
|
||||
/bin/ash --login
|
||||
sbindir=/usr/sbin
|
||||
localstatedir=/var/petitboot
|
||||
|
||||
petitboot=$sbindir/petitboot
|
||||
run_once=$localstatedir/.run-once
|
||||
|
||||
if [ ! -f $run_once -a -x $petitboot ]; then
|
||||
# quiet console
|
||||
echo 3 > /proc/sys/kernel/printk
|
||||
mkdir -p $localstatedir
|
||||
touch $run_once
|
||||
exec $petitboot --timeout
|
||||
fi
|
||||
|
||||
exec /bin/ash --login
|
||||
|
Loading…
Reference in New Issue
Block a user