diff options
author | Richard Tollerton <rich.tollerton@ni.com> | 2014-07-17 16:56:52 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-19 00:08:47 +0100 |
commit | 5672b5188557b940340bdc3e6a3ac30835b829fb (patch) | |
tree | d908ed24acb0ca6e89f8417b589457992f6a5e44 /meta/recipes-core | |
parent | a36327ee2d159b3791cc6ce0c36af4b9e0693e51 (diff) | |
download | openembedded-core-5672b5188557b940340bdc3e6a3ac30835b829fb.tar.gz openembedded-core-5672b5188557b940340bdc3e6a3ac30835b829fb.tar.bz2 openembedded-core-5672b5188557b940340bdc3e6a3ac30835b829fb.zip |
initscripts: bootmisc.sh: Make sysctl -p honor VERBOSE
busybox sysctl may lack the "-q" setting, so simulate it with redirects.
Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh index 3b5a47fcdd..5211824ade 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh @@ -36,7 +36,12 @@ if [ -f "${SYSCTL_CONF}" ] then if [ -x "/sbin/sysctl" ] then - /sbin/sysctl -p "${SYSCTL_CONF}" + # busybox sysctl does not support -q + VERBOSE_REDIR="1>/dev/null" + if [ "${VERBOSE}" != "no" ]; then + VERBOSE_REDIR="1>&1" + fi + eval /sbin/sysctl -p "${SYSCTL_CONF}" $VERBOSE_REDIR else echo "To have ${SYSCTL_CONF} applied during boot, install package <procps>." fi |