diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-08-13 19:53:24 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-08-13 19:53:24 +0200 |
commit | f670917e974265c4559be7a62b9b95c07ec954d3 (patch) | |
tree | 225f592efc1fea7c3273d6258c3d0c8c2c7557e2 /wpa_actiond/netcfg-wpa_actiond | |
parent | a285ed2891721a4217460b230fcb2cf067103d8b (diff) | |
download | netctl-f670917e974265c4559be7a62b9b95c07ec954d3.tar.gz netctl-f670917e974265c4559be7a62b9b95c07ec954d3.tar.xz |
netcfg-wpa_actiond: don't try to disable HW rfkills (FS#25514)
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'wpa_actiond/netcfg-wpa_actiond')
-rwxr-xr-x | wpa_actiond/netcfg-wpa_actiond | 3 |
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 |