mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
add a shutdown procedure - fix kernel panic
This commit is contained in:
parent
8cb2c90133
commit
7a025e4edc
@ -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
|
||||
|
@ -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
|
||||
|
11
packages/sysutils/busybox/init.d/99_shutdown
Executable file
11
packages/sysutils/busybox/init.d/99_shutdown
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# shutdown the system
|
||||
#
|
||||
# runlevels: openelec, debug, text,
|
||||
|
||||
echo "### syncing discs ###"
|
||||
sync
|
||||
|
||||
echo "### shutdown the system ###"
|
||||
poweroff
|
Loading…
x
Reference in New Issue
Block a user