diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2013-10-21 23:37:20 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2013-10-23 01:43:26 +0200 |
commit | 755c8d5afdaca08ca1732765f30370f752259d4b (patch) | |
tree | 634e81cec6c60826a296a53e74d3fdb321423afc /src/netctl-auto | |
parent | ab8953024be9f6f7d5f98886894917a8a8fdd452 (diff) | |
download | netctl-755c8d5afdaca08ca1732765f30370f752259d4b.tar.gz netctl-755c8d5afdaca08ca1732765f30370f752259d4b.tar.xz |
Minor rfkill refactorization
Testing whether transmission is blocked at all is now possible through
[[ -n $(rf_status "$Interface" "$RFKill") ]]
Diffstat (limited to 'src/netctl-auto')
-rwxr-xr-x | src/netctl-auto | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netctl-auto b/src/netctl-auto index 7519325..5cf104b 100755 --- a/src/netctl-auto +++ b/src/netctl-auto @@ -177,7 +177,7 @@ start() { source "$PROFILE_DIR/interfaces/$interface" fi if [[ $RFKill ]]; then - enable_rf "$interface" "$RFKill" || return 1 + rf_enable "$interface" "$RFKill" || return 1 fi @@ -227,7 +227,7 @@ stop() { fi timeout_wait 1 '! wpa_is_active "$interface"' || wpa_stop "$interface" ip link set dev "$interface" down - [[ $RFKill ]] && disable_rf "$interface" "$RFKill" + [[ $RFKill ]] && rf_disable "$interface" "$RFKill" return 0 } |