aboutsummaryrefslogtreecommitdiff
path: root/scripts/on_ac_power
AgeCommit message (Collapse)Author
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2013-12-02remove type commandWilliam Hubbs
The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me wrt the fix.
2011-11-17on_ac_power: Fix AC adapter presence recognitionAlessio Ababilov
On several machines, a file corresponding to AC adapter can be named ADP1. The on_ac_power script checked for AC*, which does not match ADP1, so the script always considered the adapter to be off. X-Gentoo-Bug: 380933 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380933
2010-07-12on_ac_power needs to exit not return bug #322037Jory A. Pratt
2010-03-27Support sysfs.Michal Gorny
Fixes #214
2009-12-10Move on_ac_power to a shell script.Roy Marples
Fixes #204