]> git.ipfire.org Git - thirdparty/systemd.git/commit
ac-power: add --low switch to systemd-ac-power tool 27924/head
authorLennart Poettering <lennart@poettering.net>
Mon, 5 Jun 2023 10:14:12 +0000 (12:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 5 Jun 2023 10:21:28 +0000 (12:21 +0200)
commit7f1520c6a150f4eea531ef6e57d5bd37c682af21
treedad300b3b9225f4339844ad9535a9508f2ed305a
parentc41e3605ec2f5c1d3040aa3a5fd57b9aee08c198
ac-power: add --low switch to systemd-ac-power tool

This allows checking from shell scripts whether the system is in a low
battery state. It just exposed the code we anyway have in a directly
accessible way.

This is also very useful for testing things.
man/systemd-ac-power.xml
src/ac-power/ac-power.c