summaryrefslogtreecommitdiffstats
path: root/usr/bin/autowifi
diff options
context:
space:
mode:
Diffstat (limited to 'usr/bin/autowifi')
-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"
}