From e6dece05c9b40892538d25d3eb19c16244df49a5 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 20 Jun 2006 02:08:57 +0000 Subject: [PATCH] Check if the interface exists. --- rotate-key | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.43.0