]> git.ipfire.org Git - thirdparty/systemd.git/commit
rfkill: rework and make it listen on /dev/rfkill
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Oct 2015 12:32:48 +0000 (14:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Oct 2015 14:21:09 +0000 (16:21 +0200)
commitd35c1bb1f4b90993124f817f6f54a933e3be5f6b
tree7cce3640bd85c96fc51bdb7e485f681063f4d484
parent55301ec028937eab4722c9fd586fd77ffdbc50dd
rfkill: rework and make it listen on /dev/rfkill

With this rework we introduce systemd-rfkill.service as singleton that
is activated via systemd-rfkill.socket that listens on /dev/rfkill. That
way, we get notified each time a new rfkill device shows up or changes
state, in which case we restore and save its current setting to disk.

This is nicer than the previous logic, as this means we save/restore
state even of rfkill devices that are around only intermittently, and
save/restore the state even if the system is shutdown abruptly instead
of cleanly.

This implements what I suggested in #1019 and obsoletes it.
Makefile-man.am
Makefile.am
man/systemd-rfkill.service.xml [moved from man/systemd-rfkill@.service.xml with 82% similarity]
rules/99-systemd.rules.in
src/rfkill/rfkill.c
units/.gitignore
units/systemd-rfkill.service.in [moved from units/systemd-rfkill@.service.in with 54% similarity]
units/systemd-rfkill.socket [new file with mode: 0644]