commit e4af62c70aa8552ca642cfaf72ce51edcdb75eab
parent 8872fbb3f2e895252c738c246dc5491c9413d603
Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 27 Feb 2011 18:47:52 +0100
Disabling debug and simplifying wifi handling.
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/etc/conn/common.sh b/etc/conn/common.sh
@@ -1,7 +1,7 @@
#!/bin/sh
LOGGING=1
-DEBUG=1
+DEBUG=0
# If none is set, a connection always needs to be specified.
DEFAULTCONNECTION="wifi"
diff --git a/examples/wifi/wlan0-action.sh b/examples/wifi/wlan0-action.sh
@@ -10,9 +10,7 @@ ssid=`getssid $interface`
logger -t "$interface-action" "Got request for $interface $ssid $action."
getscript() {
- cat networks.tbl \
- | grep "$ssid\$" \
- | awk -F'\t' '{print $1}'
+ awk -F'\t' "/$1\$/ {print \$1}" networks.tbl
}
script=`getscript $ssid`