Public bug reported:

checkfs.sh sets PATH to be /sbin:/bin . When it attempts to check if
we're on battery, it does "if which on_ac_power >/dev/null 2>&1".

On a standard Edgy system, on_ac_power is located in /usr/bin. Because
of the PATH setting, the "which on_ac_power" will never find that
command and the net effect is that checkfs.sh always acts as if we're
running on AC.

One fix would be to also put /usr/bin in the path, but I'm not sure if
that's the correct one.

This is with up-to-date Edgy, initscripts version 2.86.ds1-14.1ubuntu7.

** Affects: sysvinit (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
Incorrect battery handling in checkfs.sh
https://launchpad.net/bugs/59080

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to