chiark / gitweb /
rfkill: rework how we generate file names from rfkill devices
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Dec 2014 01:02:11 +0000 (02:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Dec 2014 01:04:55 +0000 (02:04 +0100)
commit4844262f25a3ff6bd23de05a0a6f84a8e2983d74
treefd67b639efcd42d11fae49ac3de5c6352e3aaa0e
parent154e6f233af028cf76608d49a3b7ed8de61373d8
rfkill: rework how we generate file names from rfkill devices

Generate the file name from ID_PATH plus the rfkill type (wlan,
bluetooth, ...) and ignore the rfkill device name, since it apparently
is not a stable identifier.

Also, ensure that devices disappearing don't result in broken services,
simply exit cleanly.
src/rfkill/rfkill.c