--- rc.sysvinit-old	2004-06-23 09:44:24.000000000 +0200
+++ rc.sysvinit-new	2004-06-23 09:44:51.000000000 +0200
@@ -40,14 +40,15 @@
   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
+# Run kill scripts
+if [ "$runlevel" = "S" ]; then
+  runlevel=1
 fi
+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
