2 # Run petitboot at first startup, otherwise run a login.
5 localstatedir=/var/petitboot
7 petitboot=$sbindir/petitboot
8 run_once=$localstatedir/.run-once
10 if [ ! -f $run_once -a -x $petitboot ]; then
12 echo 3 > /proc/sys/kernel/printk
13 mkdir -p $localstatedir
15 exec $petitboot --timeout