[oe-commits] Richard Tollerton : initscripts: bootmisc.sh: Make sysctl -p honor VERBOSE
git at git.openembedded.org
git at git.openembedded.org
Fri Jul 18 13:36:35 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 00a750a3f1bc31f1a3ffec4322188b1f0f24a0af
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=00a750a3f1bc31f1a3ffec4322188b1f0f24a0af
Author: Richard Tollerton <rich.tollerton at ni.com>
Date: Thu Jul 17 16:56:52 2014 -0500
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 at ni.com>
Signed-off-by: Ben Shelton <ben.shelton at ni.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
index 3b5a47f..5211824 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
More information about the Openembedded-commits
mailing list