I have modified my /etc/init.d/checkfs.sh, it know looks as follows:
(..)
do_start () {
# See if we're on AC Power
# If not, we're not gonna run our check
if which on_ac_power >/dev/null 2>&1
then
on_ac_power >/dev/null 2>&1
#changed from here
log_success_msg "Result from on_ac_power is $?"
sleep 5
#to here
if [ $? -eq 1 ]
then
[ "$VERBOSE" = no ] || log_success_msg "Running on battery power, so skipping file system check."
BAT=yes
fi
fi
(..)
Is this correct?
Another question: I'll have another check for my / partition in about 5 mounts: how to check and what will happen?
I have modified my /etc/init. d/checkfs. sh, it know looks as follows:
(..)
do_start () {
# See if we're on AC Power
# If not, we're not gonna run our check
if which on_ac_power >/dev/null 2>&1
then
on_ac_power >/dev/null 2>&1
#changed from here
log_success_msg "Result from on_ac_power is $?"
sleep 5
#to here
if [ $? -eq 1 ]
then
[ "$VERBOSE" = no ] || log_success_msg "Running on battery power, so skipping file system check."
BAT=yes
fi
fi
(..)
Is this correct?
Another question: I'll have another check for my / partition in about 5 mounts: how to check and what will happen?
Thanks