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:16:24 +0100
commitc0910f26ea0d692c6d22f2e3f87cf710b31fdf0a (patch)
tree02dbe932bed7f252c802574b14d80f7b5cc05b65 /meta/classes/update-rc.d.bbclass
parentc47b7734614b28c740ad0eecf409f1e4c0288224 (diff)
downloadast2050-yocto-poky-c0910f26ea0d692c6d22f2e3f87cf710b31fdf0a.zip
ast2050-yocto-poky-c0910f26ea0d692c6d22f2e3f87cf710b31fdf0a.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 (From OE-Core rev: 45e22312c48b23480bd6dff98702b0691a48f7d1) 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 9f1e28a..0c2b94a 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
}
OpenPOWER on IntegriCloud