aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2021-08-13on_ac_power: support multiple power_supply devices in sysfsSven Wegener
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.
2020-11-20scripts/shutdown.in: fix sysvinit compatible shutdownWilliam Hubbs
X-Gentoo-Bug: https://bugs.gentoo.org/755422
2018-12-27scripts: fix halt, poweroff and reboot wrappersartoo
These are designed to emulate the sysvinit equivalents, so pass "now" as the time argument if no arguments are given. This fixes #268.
2018-12-08standardize the default shellWilliam Hubbs
I do not know of a need to have the default shell be a build-time configurable setting. All *nix systems I am aware of have /bin/sh as a default posix compatible shell. If some systems running OpenRC do not make that assumption about /bin/sh, I will consider bringing this back, so feel free to open an issue.
2017-07-11fix sysvinit compatibility for shutdown wrapperWilliam Hubbs
2017-07-11fix sysvinit compatibility for reboot wrapperWilliam Hubbs
2017-07-11fix sysvinit compatibility for poweroff wrapperWilliam Hubbs
2017-07-10fix halt wrapper so it is sysvinit compatibleWilliam Hubbs
This makes the halt wrapper sysvinit compatible. It ignores several command line switches which are not currently implemented; however, those can be implemented if we need to do so. This fixes https://github.com/openrc/openrc/issues/146.
2017-06-12fix argument parsing for the sysvinit shutdown wrapperWilliam Hubbs
This fixes #140.
2017-06-12scripts/shutdown: fix arguments to be sysvinit shutdown compatibleWilliam Hubbs
This fixes #140.
2017-06-12Fix link to shutdown for MKSYSVINIT=yesWilliam Hubbs
2017-06-12scripts/Makefile: make symlinks absolute instead of relativeudeved
This closes #142.
2017-06-12scripts/Makefile: respect SBINDIR with MKSYSVINITudeved
This is for #142.
2017-06-07scripts/shutdown: pass --single to openrc-shutdownWilliam Hubbs
Sysvinit shutdown has a default of single user mode, but openrc-shutdown makes you choose a default action. Because of this, the shutdown wrapper needs to pass --single to openrc-shutdown.
2017-05-31openrc-init: add optional sysvinit compatibilityWilliam Hubbs
2017-02-22scripts: make sure the rc-sstat symlink is always replacedWilliam Hubbs
2017-01-26Revert "scripts: do not substitute for @SHELL@ in rc-sstat"William Hubbs
This reverts commit e2e652e469efa5f3ebcd69828ff16d8f5ad3f1b8.
2017-01-08scripts: do not substitute for @SHELL@ in rc-sstatWilliam Hubbs
2016-01-22fix testsWilliam Hubbs
X-Gentoo-Bug: 572602 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=572602
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
2015-06-10Add rc-sstat scriptWilliam Hubbs
The rc-sstat script is written to display status of s6 services and run rc-status to display all services status. This currently only works on Linux.
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