sysv init scripts: replace &>/dev/null redirection
authorAndré Erdmann <dywi@mailerd.de>
Sun, 26 Oct 2014 17:41:45 +0000 (18:41 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Oct 2014 17:51:21 +0000 (18:51 +0100)
commit5065d475fb9e33f8b6cceb2d44326cffece22999
treea593a846564cc7e3b5850c882f657cb4ed19753e
parent2113ed46b2ea6ce7e44c7af566059d4d1a1504ae
sysv init scripts: replace &>/dev/null redirection

"<command> &>/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 <empty command> to /dev/null)

This commit replaces "&>..." with ">/dev/null 2>&1".

Signed-off-by: André Erdmann <dywi@mailerd.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/network-manager/S45network-manager