summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connections/wireless3
-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"