From 39756bf494a8caf6864cee19a3e6c8d988e5df0e Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 10 Jun 2013 20:51:10 +0200 Subject: fix banner in wifi_keys --- usr/bin/autowifi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 usr/bin/autowifi (limited to 'usr/bin/autowifi') diff --git a/usr/bin/autowifi b/usr/bin/autowifi old mode 100644 new mode 100755 index 792c78b8..b8ba1482 --- 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" } -- cgit v1.2.3