<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openrc.git/scripts/on_ac_power, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.vlhl.dev/navi/openrc.git/atom?h=master</id>
<link rel='self' href='https://git.vlhl.dev/navi/openrc.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/'/>
<updated>2022-04-06T15:51:55+00:00</updated>
<entry>
<title>migrate fully to meson build system</title>
<updated>2022-04-06T15:51:55+00:00</updated>
<author>
<name>William Hubbs</name>
<email>w.d.hubbs@gmail.com</email>
</author>
<published>2022-04-06T15:51:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=391d12db48754861b5cecac92ee3321597ee02c1'/>
<id>urn:sha1:391d12db48754861b5cecac92ee3321597ee02c1</id>
<content type='text'>
- drop old build system
- move shared include and source files to common directory
- drop "rc-" prefix from shared include and source files
- move executable-specific code to individual directories under src
- adjust top-level .gitignore file for new build system

This closes #489.
</content>
</entry>
<entry>
<title>use HEAD in git URIs to point to the default branch</title>
<updated>2021-12-21T01:07:00+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2021-12-21T01:07:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=301161a7a4bda27c7ebd54c537dfec0cbc926365'/>
<id>urn:sha1:301161a7a4bda27c7ebd54c537dfec0cbc926365</id>
<content type='text'>
This makes the URIs shorter and dynamic: whatever the default branch
the repo uses will be used.
</content>
</entry>
<entry>
<title>on_ac_power: support multiple power_supply devices in sysfs</title>
<updated>2021-08-13T18:38:07+00:00</updated>
<author>
<name>Sven Wegener</name>
<email>sven.wegener@stealer.net</email>
</author>
<published>2021-07-04T11:19:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=63955056ecb98faa1a02d90d5a4742515f0299c8'/>
<id>urn:sha1:63955056ecb98faa1a02d90d5a4742515f0299c8</id>
<content type='text'>
Newer devices have multiple power_supply devices in sysfs:

$ grep ^ /sys/class/power_supply/*/type
/sys/class/power_supply/AC/type:Mains
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/ucsi-source-psy-USBC000:001/type:USB
/sys/class/power_supply/ucsi-source-psy-USBC000:002/type:USB

There are two "USB" Type-C ports than can supply power and both are
aggregated into the "Mains" power supply by the firmware. The "Battery"
also counts as a power supply, but is missing the online attribute.

The -f check with a wildcard pattern results in an error, when multiple
devices are present:

/lib/rc/bin/on_ac_power: line 21: [: too many arguments

When the power_supply class is registered, check for a "Mains" device.

Fixes #427.
</content>
</entry>
<entry>
<title>Convert OpenRC to a centralized copyright/license structure</title>
<updated>2015-12-21T18:16:06+00:00</updated>
<author>
<name>William Hubbs</name>
<email>w.d.hubbs@gmail.com</email>
</author>
<published>2015-12-04T22:52:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=000503fad72e4eb2ef956a24df358be84b2a9493'/>
<id>urn:sha1:000503fad72e4eb2ef956a24df358be84b2a9493</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>remove type command</title>
<updated>2013-12-02T08:08:40+00:00</updated>
<author>
<name>William Hubbs</name>
<email>w.d.hubbs@gmail.com</email>
</author>
<published>2013-12-02T01:25:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=60d288a877a3671ea5b3483ed7c4612ec897b99a'/>
<id>urn:sha1:60d288a877a3671ea5b3483ed7c4612ec897b99a</id>
<content type='text'>
The posix equivalent of the type command is "command -v", so now we use
that. Thanks to Jonathan Callen &lt;jcallen@gentoo.org&gt; for informing me
wrt the fix.
</content>
</entry>
<entry>
<title>on_ac_power: Fix AC adapter presence recognition</title>
<updated>2011-11-17T17:55:44+00:00</updated>
<author>
<name>Alessio Ababilov</name>
<email>ilovedevlinux@gmail.com</email>
</author>
<published>2011-11-17T15:48:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=260b61e9d87510b869f2b7b8fefd281ea695f88e'/>
<id>urn:sha1:260b61e9d87510b869f2b7b8fefd281ea695f88e</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>on_ac_power needs to exit not return bug #322037</title>
<updated>2010-07-13T03:19:56+00:00</updated>
<author>
<name>Jory A. Pratt</name>
<email>anarchy@gentoo.org</email>
</author>
<published>2010-07-13T03:19:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=761fe99fe2161224f93a75d7079f78111c3c7d6e'/>
<id>urn:sha1:761fe99fe2161224f93a75d7079f78111c3c7d6e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Support sysfs.</title>
<updated>2010-03-27T08:53:04+00:00</updated>
<author>
<name>Michal Gorny</name>
<email>gentoo@mgorny.alt.pl</email>
</author>
<published>2010-03-27T08:53:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=20b4076b12c47a79a5a8c8dc39f43116d376bc88'/>
<id>urn:sha1:20b4076b12c47a79a5a8c8dc39f43116d376bc88</id>
<content type='text'>
Fixes #214
</content>
</entry>
<entry>
<title>Move on_ac_power to a shell script.</title>
<updated>2009-12-10T22:30:56+00:00</updated>
<author>
<name>Roy Marples</name>
<email>roy@marples.name</email>
</author>
<published>2009-12-10T22:30:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/openrc.git/commit/?id=1d174cc60ca640146efd73948ff0e81ae0148f3d'/>
<id>urn:sha1:1d174cc60ca640146efd73948ff0e81ae0148f3d</id>
<content type='text'>
Fixes #204
</content>
</entry>
</feed>
