thinrasp/etc_org/init/rfkill-store.conf

19 lines
357 B
Plaintext
Raw Normal View History

2019-11-26 21:36:24 +01:00
# rfkill-store - store software RF kill switch state
description "store software rfkill state"
start on runlevel [016]
task
script
if [ ! -d /sys/class/rfkill ]; then
exit 0
fi
for device in /sys/class/rfkill/*; do
[ ! -d $device ] && continue
/lib/systemd/systemd-rfkill save `basename $device`
done
end script