diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 17:59:52 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 18:49:26 +0200 |
commit | 8e0191dcdd0ecab6cbf040d86d691f1dbbe74da4 (patch) | |
tree | 1e70a210442c25a83f0d44e349f098ede8c0fcbc /src | |
parent | 180fbf1d82f97329be645699e89c0ee599cbf9f2 (diff) | |
download | netctl-8e0191dcdd0ecab6cbf040d86d691f1dbbe74da4.tar.gz netctl-8e0191dcdd0ecab6cbf040d86d691f1dbbe74da4.tar.xz |
Rename wireless module to 'rfkill', remove wep_check
Diffstat (limited to 'src')
-rw-r--r-- | src/connections/wireless | 3 | ||||
-rw-r--r-- | src/rfkill (renamed from src/wireless) | 15 |
2 files changed, 1 insertions, 17 deletions
diff --git a/src/connections/wireless b/src/connections/wireless index 29d7cb2..9915165 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -1,8 +1,7 @@ #! /bin/bash . /usr/lib/network/network . $SUBR_DIR/8021x -. $SUBR_DIR/wireless - +. $SUBR_DIR/rfkill wireless_up() { diff --git a/src/wireless b/src/rfkill index 85743bf..d61703d 100644 --- a/src/wireless +++ b/src/rfkill @@ -1,18 +1,3 @@ -# Uses wireless_tools, to check for association to a network. -# wep_check interface [timeout] -wep_check() -{ - local INTERFACE="$1" TIMEOUT="${2:-15}" timeout=0 bssid - - while [[ $timeout -lt "$TIMEOUT" ]]; do - bssid=$(iwgetid "$INTERFACE" -ra) - [[ -n "$bssid" && "$bssid" != "00:00:00:00:00:00" ]] && return 0 - sleep 1 - let timeout++ - done - return 1 -} - set_rf_state() { local INTERFACE="$1" state="$2" RFKILL_NAME="$3" |