X-Git-Url: https://git.llucax.com/software/wpe.git/blobdiff_plain/519405f3b7a45197b8c3a934da82e4e8d033410b..17971e5fbd22725d9cc9ba889ff49fd1b8ee9de1:/rotate-key diff --git a/rotate-key b/rotate-key index 82ab5a9..e834ae8 100644 --- a/rotate-key +++ b/rotate-key @@ -1,5 +1,8 @@ #!/bin/sh +# Copyleft 2006 - Leandro Lucarella +# This script is under the BOLA license, please see the LICENSE file. + # Must edit ########### # Wireless interface @@ -40,7 +43,8 @@ export LANG=C # Check if they are using our essid if [ -n "$ESSID" ] then - curr_essid=`iwconfig $IFACE | grep ESSID | sed 's/.*ESSID:"\([^"]\+\)".*/\1/'` + curr_essid=`/sbin/iwconfig $IFACE | grep ESSID \ + | sed 's/.*ESSID:"\([^"]\+\)".*/\1/'` if [ "$curr_essid" != "$ESSID" ] then exit 0