don't use -s when operating on offline root
authorPhil Blundell <philb@gnu.org>
Sat, 31 Jul 2004 20:20:27 +0000 (20:20 +0000)
committerPhil Blundell <philb@gnu.org>
Sat, 31 Jul 2004 20:20:27 +0000 (20:20 +0000)
BKrev: 410bff0bwbFY2sHNzi9rGagsdAzmRg

classes/update-rc.d.oeclass

index 341eb3c..41e78b8 100644 (file)
@@ -6,8 +6,10 @@ INIT_D_DIR = "${sysconfdir}/init.d"
 updatercd_postinst() {
 if test "x$D" != "x"; then
        D="-r $D"
+else
+       D="-s"
 fi
-update-rc.d -s $D ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
+update-rc.d $D ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
 }
 
 updatercd_postrm() {