summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-07-31 20:20:27 +0000
committerPhil Blundell <philb@gnu.org>2004-07-31 20:20:27 +0000
commitdd73ae60c32d38419bc448e716678d7f604f2316 (patch)
tree58b9b8e4b4636c20af3c049719ce46187bbb251c /classes
parent74228b4f70ad6607af9e61aaf5a54adb1fd11885 (diff)
don't use -s when operating on offline root
BKrev: 410bff0bwbFY2sHNzi9rGagsdAzmRg
Diffstat (limited to 'classes')
-rw-r--r--classes/update-rc.d.oeclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/update-rc.d.oeclass b/classes/update-rc.d.oeclass
index 341eb3c3fb..41e78b8ab5 100644
--- a/classes/update-rc.d.oeclass
+++ b/classes/update-rc.d.oeclass
@@ -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() {