From: André Erdmann Date: Sun, 26 Oct 2014 17:41:45 +0000 (+0100) Subject: sysv init scripts: replace &>/dev/null redirection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5065d475fb9e33f8b6cceb2d44326cffece22999;p=buildroot.git sysv init scripts: replace &>/dev/null redirection " &>/dev/null" is supposed to redirect all output to /dev/null. However, in shells that don't support it (dash, ash without bash extensions), a command like "echo a &>/dev/null" is interpreted as (a) "echo a" in background (b) write nothing to /dev/null (redirect to /dev/null) This commit replaces "&>..." with ">/dev/null 2>&1". Signed-off-by: André Erdmann Signed-off-by: Thomas Petazzoni --- diff --git a/package/network-manager/S45network-manager b/package/network-manager/S45network-manager index 112aa660e5..78808912bf 100755 --- a/package/network-manager/S45network-manager +++ b/package/network-manager/S45network-manager @@ -24,7 +24,7 @@ case "$1" in ;; stop) echo -n "Stopping NetworkManager ... " - [ ! -z "$PID" ] && kill $PID &> /dev/null + [ ! -z "$PID" ] && kill $PID > /dev/null 2>&1 if [ $? -gt 0 ]; then echo "failed!" else