]> git.llucax.com Git - software/wpe.git/commitdiff
Check if the interface exists.
authorLeandro Lucarella <luca@llucax.com.ar>
Tue, 20 Jun 2006 02:08:57 +0000 (02:08 +0000)
committerLeandro Lucarella <luca@llucax.com.ar>
Tue, 20 Jun 2006 02:08:57 +0000 (02:08 +0000)
rotate-key

index 14e20f12b25b1529a242a89d06854aa97340d0cc..7f4d2fbb3d29c867366076dea9cbae1e31f36039 100644 (file)
@@ -40,6 +40,12 @@ HASH_PROG="sha1sum"
 
 export LANG=C
 
 
 export LANG=C
 
+# Check if interface exists
+if ! /sbin/ifconfig "$IFACE" > /dev/null 2>&1
+then
+  exit 0
+fi
+
 # Check if they are using our essid
 if [ -n "$ESSID" ]
 then
 # Check if they are using our essid
 if [ -n "$ESSID" ]
 then