summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/netcfg-auto-wireless2
-rw-r--r--src/netcfg2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/netcfg-auto-wireless b/contrib/netcfg-auto-wireless
index 11cf05f..02533c8 100755
--- a/contrib/netcfg-auto-wireless
+++ b/contrib/netcfg-auto-wireless
@@ -15,7 +15,7 @@ wifi_auto()
while read essid; do
# awfully long grep that finds a file which has:
# CONNECTION=wireless, ESSID=$essid, INTERFACE=$INTERFACE
- profile=$(grep -rlP "CONNECTION=\"?wireless\"?(\n|.)*INTERFACE=\"?$INTERFACE\"?(\n|.)*ESSID=\"?$essid\"?" $PROFILE_DIR/|head -n 1)
+ profile=$(grep -rlP --exclude=/etc/network.d/last "CONNECTION=\"?wireless\"?(\n|.)*INTERFACE=\"?$INTERFACE\"?(\n|.)*ESSID=\"?$essid\"?" $PROFILE_DIR/|head -n 1)
if [[ -n "$profile" ]]; then
break # If we found a profile, use it.
fi
diff --git a/src/netcfg b/src/netcfg
index c82c8b5..077b96c 100644
--- a/src/netcfg
+++ b/src/netcfg
@@ -12,7 +12,7 @@ err() {
printhl "$*"
}
-NETCFG_VER=2.0.1
+NETCFG_VER=2.0.3
PROFILE_DIR="/etc/network.d/"
SUBR_DIR="/usr/lib/network/"
STATE_DIR="/var/run/network/"