1
0
This repository has been archived on 2025-06-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openwrt_archive/target/linux/ps3/petitboot/base-files/sbin/initrun
Geoff Levand decf465252 ps3/petitboot: Run petitboot at first startup
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>


SVN-Revision: 17324
2009-08-19 22:36:53 +00:00

19 lines
378 B
Bash
Executable File

#!/bin/sh
# Run petitboot at first startup, otherwise run a 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