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: lucaceresoli/bug-15201-perf-libtraceevent-missing~33119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5672b5188557b940340bdc3e6a3ac30835b829fb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 3b5a47fcdda..5211824adec 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