mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 19:15:01 +00:00
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. (From OE-Core rev: 42f107513148aa6e9fd69d51e63a183c613114c0) 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>
This commit is contained in:
parent
063ee04d47
commit
48641d57d4
@ -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: "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user