From 7a025e4edce865fa6d3a22e3f3a368850a6a31f5 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 26 Mar 2009 20:00:57 +0100 Subject: [PATCH] add a shutdown procedure - fix kernel panic --- packages/sysutils/busybox/config/busybox.conf | 4 ++-- packages/sysutils/busybox/init.d/80_debug | 3 ++- packages/sysutils/busybox/init.d/99_shutdown | 11 +++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100755 packages/sysutils/busybox/init.d/99_shutdown diff --git a/packages/sysutils/busybox/config/busybox.conf b/packages/sysutils/busybox/config/busybox.conf index 72873fc1d3..f27f8adb99 100644 --- a/packages/sysutils/busybox/config/busybox.conf +++ b/packages/sysutils/busybox/config/busybox.conf @@ -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 diff --git a/packages/sysutils/busybox/init.d/80_debug b/packages/sysutils/busybox/init.d/80_debug index a577a252d9..3a507ee481 100755 --- a/packages/sysutils/busybox/init.d/80_debug +++ b/packages/sysutils/busybox/init.d/80_debug @@ -7,5 +7,6 @@ # start shell echo "### starting debug shell ###" +echo "*** type exit to exit ***" - exec /bin/sh /dev/tty2 2>&1 + exec /bin/sh /dev/tty1 2>&1 diff --git a/packages/sysutils/busybox/init.d/99_shutdown b/packages/sysutils/busybox/init.d/99_shutdown new file mode 100755 index 0000000000..b351a7f090 --- /dev/null +++ b/packages/sysutils/busybox/init.d/99_shutdown @@ -0,0 +1,11 @@ +#!/bin/sh +# +# shutdown the system +# +# runlevels: openelec, debug, text, + +echo "### syncing discs ###" + sync + +echo "### shutdown the system ###" + poweroff