diff options
author | lassulus <lassulus@googlemail.com> | 2013-09-27 01:50:07 +0200 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-09-27 01:50:07 +0200 |
commit | 39d6a2fb1ee0f714e893f8247c19651a583a3ba7 (patch) | |
tree | e085de3ca3aba0215b2d54cbd80694857b02e257 /usr/lib | |
parent | 9e6f266a64ed9d37105b8f17c97e11dd79349d9b (diff) |
fixed autowifi_dryrun & fixed painmode
Diffstat (limited to 'usr/lib')
-rw-r--r-- | usr/lib/autowifi/lib/network | 2 | ||||
-rw-r--r-- | usr/lib/autowifi/lib/plugin_core | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/lib/autowifi/lib/network b/usr/lib/autowifi/lib/network index c21f0db0..a0105120 100644 --- a/usr/lib/autowifi/lib/network +++ b/usr/lib/autowifi/lib/network @@ -1,7 +1,7 @@ #!/bin/sh check_gateway(){ - ping -c 1 -w 5 $(ip route | awk '/default/{print $3}') + ping -c 1 -w 5 $(ip route | awk '/default/{print $3}') >/dev/null } check_internet(){ # TODO determine the loader, either wget or curl diff --git a/usr/lib/autowifi/lib/plugin_core b/usr/lib/autowifi/lib/plugin_core index 700d15f8..e79a3c05 100644 --- a/usr/lib/autowifi/lib/plugin_core +++ b/usr/lib/autowifi/lib/plugin_core @@ -37,5 +37,5 @@ check_vendor_mac(){ return 1 } check_painmode(){ - test -n "${painmode:-}" && echo "painmode required">&2 && exit 1 + test -z "${painmode:-}" && echo "painmode required" && exit 1 } |