[Pkg-sysvinit-devel] Bug#460404: Bug#460404: running fsck on battery should be configurable

Petter Reinholdtsen pere at hungry.com
Sat Jan 12 14:02:28 UTC 2008


[Harald Dunkel]
> Running fsck on battery should be configurable, e.g. by some option
> in /lib/init/vars.sh. For an ext2 filesystem it is fatal to ignore a
> fsck, esp. since there is a higher risk for laptops.  They either
> run out of power, or they are just shut off.

One way to do this is by adding this function to /etc/default/rcS:

  on_ac_power() { true; }

It should make sure the function is used instead of the binary.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list