]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/altboot/files/spitz/altboot-menu/Advanced/55-bin-sh
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / altboot / files / spitz / altboot-menu / Advanced / 55-bin-sh
1 # !/bin/sh
2 M_TITLE="init=/bin/sh"
3
4
5 run_module() {
6         
7         test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
8         
9         test "$ASK_PW_ON_BOOT" != "yes" && verify_master_pw >/dev/tty0
10         
11         echo -e "\nBoot system with 'exec /sbin/init 5'\n"
12         while true
13         do
14                 exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
15                 echo "WARNING: Shell was killed!"
16         done
17 }
18
19 case "$1" in
20 title)  echo "$M_TITLE";;
21 run)    run_module;;
22 esac
23