diff options
| author | makefu <github@syntax-fehler.de> | 2013-09-27 02:22:15 +0200 | 
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2013-09-27 02:22:15 +0200 | 
| commit | 0077e1839cda806e2285bea1ca223dbaf670e4ef (patch) | |
| tree | dbd0a1c24a39615a538963cb78177e77bb5d1974 /usr | |
| parent | e834ba53362a9cbd9404c70c51feb655dd352f98 (diff) | |
make 30default_wps less verbose
fix lib/wps posix compatibility by using == instead of =
Diffstat (limited to 'usr')
| -rw-r--r-- | usr/lib/autowifi/lib/wps | 2 | ||||
| -rwxr-xr-x | usr/lib/autowifi/plugins/30default_wps | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/usr/lib/autowifi/lib/wps b/usr/lib/autowifi/lib/wps index 9fa01801..5e9bbda7 100644 --- a/usr/lib/autowifi/lib/wps +++ b/usr/lib/autowifi/lib/wps @@ -17,7 +17,7 @@ try_wps_pin(){      PIN="$5" -    [ "$ENC" = "[ESS]" ] && return 2 +    [ "$ENC" == "[ESS]" ] && return 2      WPA_CONF=/tmp/wpa_trywps.conf      WPA_LOG=/tmp/wpa_trywps.log      rm $WPA_LOG diff --git a/usr/lib/autowifi/plugins/30default_wps b/usr/lib/autowifi/plugins/30default_wps index ee7195e0..50ad2676 100755 --- a/usr/lib/autowifi/plugins/30default_wps +++ b/usr/lib/autowifi/plugins/30default_wps @@ -13,6 +13,6 @@ if has_wps "$ENC"; then      echo "trying PIN $DEFAULT_PIN against $ESSID" >&2      try_wps_pin "$@" $DEFAULT_PIN  else -    echo "Network $ESSID not WPS enabled" >&2 +    echo "Network $ESSID not WPS enabled"      exit 1  fi | 
