diff --git a/package/base/sysfiles/etc_rc.d_rc.txt b/package/base/sysfiles/etc_rc.d_rc.txt index 487dedc07..db26d6c90 100644 --- a/package/base/sysfiles/etc_rc.d_rc.txt +++ b/package/base/sysfiles/etc_rc.d_rc.txt @@ -30,21 +30,7 @@ fi echo "RC: Enter runlevel $RUNLEVEL ..." -if [ $RUNLEVEL = S ] -then - # - # Kill all processes - # - echo "Sending all processes a SIGTERM (15) ..." - killall5 -15 - sleep 5 - echo "Sending all processes a 2nd SIGTERM (15) ..." - killall5 -15 - sleep 3 - echo "Sending all processes a SIGKILL (9) ..." - killall5 -9 - sleep 3 -elif [ $RUNLEVEL != 0 -a $RUNLEVEL != 6 ] +if [ $RUNLEVEL != 0 -a $RUNLEVEL != 6 -a $RUNLEVEL != S ] then # # run the START scripts of the current (new) runlevel diff --git a/package/base/sysfiles/system.init b/package/base/sysfiles/system.init index 77348edc0..9a15838d5 100644 --- a/package/base/sysfiles/system.init +++ b/package/base/sysfiles/system.init @@ -205,10 +205,14 @@ dnl sleep 1 ; sync ; sleep 1 dnl block_split() - [ "$RUNLEVEL" = 0 ] && command=halt || command=reboot - echo "Going to $command the system ..." - $command -d -f -i -p - while true ; do sleep 1 ; done + command="" + [ "$RUNLEVEL" = 0 ] && command=halt + [ "$RUNLEVEL" = 6 ] && command=reboot + if [ -n "$command" ] ; then + echo "Going to $command the system ..." + $command -d -f -i -p + while true ; do sleep 1 ; done + fi block_end main_end