summaryrefslogtreecommitdiffstats
path: root/wpa_actiond/netcfg-wpa_actiond
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_actiond/netcfg-wpa_actiond')
-rwxr-xr-xwpa_actiond/netcfg-wpa_actiond3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond
index 9ad319f..bb144c3 100755
--- a/wpa_actiond/netcfg-wpa_actiond
+++ b/wpa_actiond/netcfg-wpa_actiond
@@ -21,7 +21,8 @@ case $1 in
netcfg -i "$interface"
stop_wpa "$interface"
kill $(cat "/run/wpa_actiond_${2}.pid")
- if [[ -n "$RFKILL" ]]; then
+ # only try to disable software rfkill switches (FS#25514)
+ if [[ "$RFKILL" == "soft" ]]; then
set_rf_state "$interface" disabled $RFKILL_NAME || exit $?
fi
exit