[Pkg-sysvinit-commits] r311 -
sysvinit/trunk/debian/initscripts/etc/init.d
Thomas Hood
jdthood-guest at costa.debian.org
Mon Nov 28 19:09:59 UTC 2005
Author: jdthood-guest
Date: 2005-11-28 19:09:57 +0000 (Mon, 28 Nov 2005)
New Revision: 311
Modified:
sysvinit/trunk/debian/initscripts/etc/init.d/checkroot.sh
Log:
Tweak format
Modified: sysvinit/trunk/debian/initscripts/etc/init.d/checkroot.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/checkroot.sh 2005-11-28 18:17:17 UTC (rev 310)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/checkroot.sh 2005-11-28 19:09:57 UTC (rev 311)
@@ -190,9 +190,11 @@
# See if we're on AC Power
# If not, we're not gonna run our check
- if [ -x /usr/bin/on_ac_power ] && [ "$rootcheck" = yes ]; then
+ if [ -x /usr/bin/on_ac_power ] && [ "$rootcheck" = yes ]
+ then
/usr/bin/on_ac_power >/dev/null 2>&1
- if [ "$?" -eq 1 ]; then
+ if [ "$?" -eq 1 ]
+ then
log_warning_msg "On battery power, so skipping file system check."
rootcheck=no
fi
@@ -346,7 +348,8 @@
;;
"")
[ -L /etc/mtab ] && MTAB_PATH="$(readlink /etc/mtab)"
- if [ "$MTAB_PATH" ] ; then
+ if [ "$MTAB_PATH" ]
+ then
log_failure_msg "Cannot initialize ${MTAB_PATH}."
else
log_failure_msg "Cannot initialize the mtab file."
More information about the Pkg-sysvinit-commits
mailing list