maintainers: remove email for amuckstot30 (#360059)
[NixPkgs.git] / pkgs / os-specific / linux / rfkill / rfkill-hook.sh
blob75716e40daee8a49ca10558e0f106063228b5842
1 #!@shell@
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
6 # file.
8 if [ -z "$RFKILL_STATE" ]; then
9 echo "rfkill-hook: error: RFKILL_STATE variable not set"
10 exit 1
13 if [ -x /run/current-system/etc/rfkill.hook ]; then
14 exec /run/current-system/etc/rfkill.hook
15 elif [ ! -z "$RFKILL_HOOK" ]; then
16 exec $RFKILL_HOOK
17 else
18 echo "rfkill-hook: $RFKILL_STATE"