From: Leandro Lucarella Date: Tue, 20 Jun 2006 02:08:57 +0000 (+0000) Subject: Check if the interface exists. X-Git-Tag: darcs_import~1 X-Git-Url: https://git.llucax.com/software/wpe.git/commitdiff_plain/e6dece05c9b40892538d25d3eb19c16244df49a5?ds=sidebyside Check if the interface exists. --- diff --git a/rotate-key b/rotate-key index 14e20f1..7f4d2fb 100644 --- a/rotate-key +++ b/rotate-key @@ -40,6 +40,12 @@ HASH_PROG="sha1sum" 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