From 39d6a2fb1ee0f714e893f8247c19651a583a3ba7 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 27 Sep 2013 01:50:07 +0200 Subject: fixed autowifi_dryrun & fixed painmode --- usr/lib/autowifi/lib/network | 2 +- usr/lib/autowifi/lib/plugin_core | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/lib') 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 } -- cgit v1.2.3