summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-03-28 15:28:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-02 18:15:49 +0100
commit45e22312c48b23480bd6dff98702b0691a48f7d1 (patch)
tree8cef469a674eff21036d59b3460d36e8c8357cba /meta/classes/update-rc.d.bbclass
parente9e4a90c7e66abe2ab2c335d60ef91e869f48693 (diff)
downloadopenembedded-core-contrib-45e22312c48b23480bd6dff98702b0691a48f7d1.tar.gz
update-rc.d, systemd: redirect also stderr from type
* different shells different behavior? bash prints 'type: update-rc.d: not found' on stderr busybox's sh on stdout Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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
else
OPT="-s"
fi
-if type update-rc.d >/dev/null; then
+if type update-rc.d >/dev/null 2>/dev/null; then
update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
fi
}
@@ -35,7 +35,7 @@ if test "$D" != ""; then
else
OPT=""
fi
-if type update-rc.d >/dev/null; then
+if type update-rc.d >/dev/null 2>/dev/null; then
update-rc.d $OPT ${INITSCRIPT_NAME} remove
fi
}