From: Richard Tollerton Date: Thu, 17 Jul 2014 21:56:52 +0000 (-0500) Subject: initscripts: bootmisc.sh: Make sysctl -p honor VERBOSE X-Git-Tag: 2015-4~2282 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5672b5188557b940340bdc3e6a3ac30835b829fb;p=openembedded-core.git 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 Signed-off-by: Ben Shelton Signed-off-by: Richard Purdie --- 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 ." fi