]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/altboot/files/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 / 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         # Mount /proc, etc
12         init_rootfs
13         
14         echo -e "\nBoot system with 'exec /sbin/init 5'\n"
15         while true
16         do
17                 exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
18                 echo "WARNING: Shell was killed!"
19         done
20 }
21
22 case "$1" in
23 title)  echo "$M_TITLE";;
24 run)    run_module;;
25 esac
26