]> git.ipfire.org Git - thirdparty/systemd.git/commit
battery-check: several follow-ups
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Jun 2023 17:43:17 +0000 (02:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Jun 2023 06:41:00 +0000 (15:41 +0900)
commitbe994c2640d806eaecaaabf7d79ec7080c42dd3a
tree7dc1404c0c5b8c3b67672fbeeb9815f0aee01383
parentd625f717db6e151fd78742593c35eaba4cd2841d
battery-check: several follow-ups

Follow-ups for e3d4148d50909119c4e9327e6ad96d3ca7f4661a.

- add reference to initrd-battery-check.service in man page, and move
  its section from 1 to 8,
- add link to man page in help message,
- introduce ERRNO_IS_NO_PLYMOUTH(),
- propagate error in battery_check_send_plymouth_message(),
- rename battery_check_send_plymouth_message() -> plymouth_send_message(),
- return earlier when the first battery level check passed to reduce
  indentation,
- fix potential use of invalid fd on battery restored,
- do not use emoji for /dev/console,
- add simple test (mostly for coverity),

etc, etc...
man/initrd-battery-check.service.xml [new file with mode: 0644]
man/rules/meson.build
man/systemd-battery-check.xml [deleted file]
src/basic/glyph-util.h
src/battery-check/battery-check.c
test/units/testsuite-74.battery-check.sh [new file with mode: 0755]
units/initrd-battery-check.service.in