Don't fail if interface is still visible.
authorJamie Cameron <jcameron@webmin.com>
Tue, 8 Feb 2011 00:21:31 +0000 (16:21 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 8 Feb 2011 00:21:31 +0000 (16:21 -0800)
http://sourceforge.net/tracker/?func=detail&atid=117457&aid=3164666&group_id=17457

net/linux-lib.pl

index e555cf8..61bd852 100755 (executable)
@@ -144,7 +144,7 @@ if ($still) {
                }
        local ($still) = grep { $_->{'fullname'} eq $name }
                      &active_interfaces();
-       if ($still) {
+       if ($still && $still->{'up'}) {
                &error($out ? "<pre>$out</pre>"
                            : "Interface is still active even after being ".
                              "shut down");