summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-06-10 20:51:10 +0200
committermakefu <github@syntax-fehler.de>2013-06-10 20:51:10 +0200
commit39756bf494a8caf6864cee19a3e6c8d988e5df0e (patch)
tree5f7a60b11e842949c577c613991a5aa36e3ae14d /usr
parent65076d80e493603f7e58fd5f519cb2e2f7198eb7 (diff)
fix banner in wifi_keys
Diffstat (limited to 'usr')
-rwxr-xr-x[-rw-r--r--]usr/bin/autowifi2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/bin/autowifi b/usr/bin/autowifi
index 792c78b8..b8ba1482 100644..100755
--- a/usr/bin/autowifi
+++ b/usr/bin/autowifi
@@ -41,7 +41,7 @@ connect(){
}
write_profile(){
bandw=$(check_bandwidth)
- (cat $wifi_keys | grep -v "|$1|" ; echo "$2|$1|$bandw|$4" ) | sort | uniq > "${wifi_keys}2"
+ (echo "#SSID|MAC|BANDWIDTH|KEY"; cat $wifi_keys | grep -v '^#' | grep -v "|$1|" ; echo "$2|$1|$bandw|$4" ) | sort | uniq > "${wifi_keys}2"
mv "${wifi_keys}2" "$wifi_keys"
}