summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 9f1e28a59d..0c2b94a25b 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -18,7 +18,7 @@ if test "x$D" != "x"; then
18else 18else
19 OPT="-s" 19 OPT="-s"
20fi 20fi
21if type update-rc.d >/dev/null; then 21if type update-rc.d >/dev/null 2>/dev/null; then
22 update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} 22 update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
23fi 23fi
24} 24}
@@ -35,7 +35,7 @@ if test "$D" != ""; then
35else 35else
36 OPT="" 36 OPT=""
37fi 37fi
38if type update-rc.d >/dev/null; then 38if type update-rc.d >/dev/null 2>/dev/null; then
39 update-rc.d $OPT ${INITSCRIPT_NAME} remove 39 update-rc.d $OPT ${INITSCRIPT_NAME} remove
40fi 40fi
41} 41}