summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Tollerton <rich.tollerton@ni.com>2014-07-22 15:23:34 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-23 21:47:17 +0100
commit42f107513148aa6e9fd69d51e63a183c613114c0 (patch)
tree7271eda8b7b2f8ac18206a919d8b40c7c2b5d890
parente9365e9d9e8a8696849fda182ec260398059089a (diff)
downloadopenembedded-core-42f107513148aa6e9fd69d51e63a183c613114c0.tar.gz
openembedded-core-42f107513148aa6e9fd69d51e63a183c613114c0.tar.bz2
openembedded-core-42f107513148aa6e9fd69d51e63a183c613114c0.zip
sysvinit: bootlogd: Honor VERBOSE
The messages echoed when starting and stopping bootlogd are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled. 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>
-rwxr-xr-xmeta/recipes-core/sysvinit/sysvinit/bootlogd.init10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
index 7d6518d981..06af465a5b 100755
--- a/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
+++ b/meta/recipes-core/sysvinit/sysvinit/bootlogd.init
@@ -46,7 +46,7 @@ esac
case "$ACTION" in
start)
- echo -n "Starting $DESC: "
+ [ "${VERBOSE}" != "no" ] && echo -n "Starting $DESC: "
if [ -d /proc/1/. ]
then
umask 027
@@ -55,10 +55,12 @@ case "$ACTION" in
else
$DAEMON -r -c
fi
- echo "$NAME."
+ [ "${VERBOSE}" != "no" ] && echo "$NAME."
;;
stop)
- echo -n "Stopping $DESC: "
+ # stop may get called during bootup, so let it honor
+ # rcS VERBOSE setting
+ [ "${VERBOSE}" != "no" ] && echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --exec $DAEMON
if [ "$STOPPER" ] && [ -f /var/log/boot ] && \
@@ -71,7 +73,7 @@ case "$ACTION" in
mv boot~ boot.0
fi
- echo "$NAME."
+ [ "${VERBOSE}" != "no" ] && echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "