projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5a60c
)
More useful message if interface is still up
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 3 Feb 2011 19:20:37 +0000
(11:20 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 3 Feb 2011 19:20:37 +0000
(11:20 -0800)
net/linux-lib.pl
patch
|
blob
|
history
diff --git
a/net/linux-lib.pl
b/net/linux-lib.pl
index
f838f07
..
e555cf8
100755
(executable)
--- a/
net/linux-lib.pl
+++ b/
net/linux-lib.pl
@@
-145,7
+145,9
@@
if ($still) {
local ($still) = grep { $_->{'fullname'} eq $name }
&active_interfaces();
if ($still) {
- &error("<pre>$out</pre>");
+ &error($out ? "<pre>$out</pre>"
+ : "Interface is still active even after being ".
+ "shut down");
}
if (&iface_type($name) =~ /^(.*) (VLAN)$/) {
$out = &backquote_logged("vconfig rem $name 2>&1");