projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6858458
)
SuSE 10.2 virtual interfaces are always activated at boot
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 1 May 2009 03:34:52 +0000
(
03:34
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 1 May 2009 03:34:52 +0000
(
03:34
+0000)
net/suse-linux-9.2-ALL-lib.pl
patch
|
blob
|
history
diff --git
a/net/suse-linux-9.2-ALL-lib.pl
b/net/suse-linux-9.2-ALL-lib.pl
index
e5f23b9
..
20a40e4
100644
(file)
--- a/
net/suse-linux-9.2-ALL-lib.pl
+++ b/
net/suse-linux-9.2-ALL-lib.pl
@@
-212,11
+212,19
@@
else {
}
}
-# can_edit(what)
+# can_edit(what
, [iface]
)
# Can some boot-time interface parameter be edited?
sub can_edit
{
-return $_[0] ne "bootp";
+if ($_[0] eq "bootp") {
+ # SuSE doesn't support bootp
+ return 0;
+ }
+elsif ($_[1] && $_[0] eq "up" && $_[1]->{'virtual'} ne '' && $_[1]->{'file'}) {
+ # Virtual interfaces are always activated at boot
+ return 0;
+ }
+return 1;
}
# valid_boot_address(address)