ps3/petitboot: Run petitboot at first startup
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> SVN-Revision: 17324
This commit is contained in:
parent
57dd2622ef
commit
28fae0bccf
1 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,18 @@
|
||||||
#!/bin/sh
|
#!/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 a new issue