diff options
-rwxr-xr-x | contrib/netcfg-auto-wireless | 2 | ||||
-rw-r--r-- | src/netcfg | 2 |
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 @@ -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/" |