add a shutdown procedure - fix kernel panic

This commit is contained in:
Stephan Raue 2009-03-26 20:00:57 +01:00
parent 8cb2c90133
commit 7a025e4edc
3 changed files with 15 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Busybox version: 1.13.3
# Mon Mar 23 22:02:54 2009
# Thu Mar 26 19:30:03 2009
#
CONFIG_HAVE_DOT_CONFIG=y
@ -218,7 +218,7 @@ CONFIG_FEATURE_SORT_BIG=y
# CONFIG_FEATURE_STAT_FORMAT is not set
# CONFIG_STTY is not set
# CONFIG_SUM is not set
# CONFIG_SYNC is not set
CONFIG_SYNC=y
# CONFIG_TAC is not set
CONFIG_TAIL=y
# CONFIG_FEATURE_FANCY_TAIL is not set

View File

@ -7,5 +7,6 @@
# start shell
echo "### starting debug shell ###"
echo "*** type exit to exit ***"
exec /bin/sh </dev/tty2 >/dev/tty2 2>&1
exec /bin/sh </dev/tty1 >/dev/tty1 2>&1

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# shutdown the system
#
# runlevels: openelec, debug, text,
echo "### syncing discs ###"
sync
echo "### shutdown the system ###"
poweroff