Package: procps
Version: 3.2.1-2
Severity: minor
Tags: patch
When setting VERBOSE=no in /etc/default/rcS, the /etc/init.d/procps.sh
will output just "... done." on a line on its own during the boot
process.
The reasons is simble, only the first echo cmd is changed by the use
of VERBOSE:
if [ "$VERBOSE" = "no" ]
then
n="-n"
redir=">/dev/null"
else
echo "Setting kernel variables ..."
n=""
redir=""
fi
eval "/sbin/sysctl $n -p $redir"
echo "... done."
The latter should be protected as well. I suggest using
[ "$VERBOSE" != no ] && echo "... done."
or the log_*_msg() functions from /lib/lsb/init-functions in the
lsb-base package (like this:
if [ "$VERBOSE" = "no" ]
then
n="-n"
redir=">/dev/null"
else
log_begin_msg "Setting kernel variables..."
n=""
redir=""
fi
eval "/sbin/sysctl $n -p $redir"
[ "$VERBOSE" != no ] && log_end_msg 0
Friendly,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]