3 # Executes a hook in case of a change to the
4 # rfkill state. The hook can be passed as
5 # environment variable, or present as executable
8 if [ -z "$RFKILL_STATE" ]; then
9 echo "rfkill-hook: error: RFKILL_STATE variable not set"
13 if [ -x /run
/current-system
/etc
/rfkill.hook
]; then
14 exec /run
/current-system
/etc
/rfkill.hook
15 elif [ ! -z "$RFKILL_HOOK" ]; then
18 echo "rfkill-hook: $RFKILL_STATE"