diff options
Diffstat (limited to 'source/a/sysvinit-scripts/scripts/rc.sysvinit')
-rw-r--r-- | source/a/sysvinit-scripts/scripts/rc.sysvinit | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/a/sysvinit-scripts/scripts/rc.sysvinit b/source/a/sysvinit-scripts/scripts/rc.sysvinit index 916e59ee..057c3f1e 100644 --- a/source/a/sysvinit-scripts/scripts/rc.sysvinit +++ b/source/a/sysvinit-scripts/scripts/rc.sysvinit @@ -40,14 +40,12 @@ if [ "$runlevel" = "" ]; then export prevlevel fi -# Run kill scripts in the previous runlevel if not "none" -if [ ! "$prevlevel" = "N" ]; then - for script in /etc/rc.d/rc$prevlevel.d/K* ; do - if [ -x $script ]; then - startup $script stop - fi - done -fi +# Run kill scripts: +for script in /etc/rc.d/rc$runlevel.d/K* ; do + if [ -x $script ]; then + startup $script stop + fi +done # Now do the startup scripts: for script in /etc/rc.d/rc$runlevel.d/S* ; do |