summaryrefslogtreecommitdiff
path: root/Network
diff options
context:
space:
mode:
authorcarlosg <carlosg>2007-02-20 11:04:55 +0000
committercarlosg <carlosg>2007-02-20 11:04:55 +0000
commit0d948416be92b73df59bbc1df2270ac910f10a4e (patch)
treeac0e75faaf5498d7a6c5387700838fe5cd86d775 /Network
parent06834aca6285c60325e75b3384529de321a4478c (diff)
2007-02-20 Carlos Garnacho <carlosg@gnome.org>
* Network/Ifaces.pm: oops, actually be able to configure static interfaces in debian...
Diffstat (limited to 'Network')
-rw-r--r--Network/Ifaces.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Network/Ifaces.pm b/Network/Ifaces.pm
index e87dc4d..e538506 100644
--- a/Network/Ifaces.pm
+++ b/Network/Ifaces.pm
@@ -403,6 +403,7 @@ sub set_debian_bootproto
"ppp" => "ppp",
"none" => "static",
"ipv4ll" => "ipv4ll",
+ "static" => "static",
);
my %dev_to_method =
@@ -3514,11 +3515,11 @@ sub interface_configured
if ($type eq "ethernet" || $type eq "irlan")
{
- return 1 if (($$iface{"bootproto"} eq "static" && $$iface{"address"} && $$iface{"netmask"}) || $$iface{"bootproto"});
+ return 1 if (($$iface{"bootproto"} eq "static" && $$iface{"address"} && $$iface{"netmask"}) || $$iface{"bootproto"} ne "static");
}
elsif ($type eq "wireless")
{
- return 1 if ((($$iface{"bootproto"} eq "static" && $$iface{"address"} && $$iface{"netmask"}) || $$iface{"bootproto"}) && $$iface{"essid"});
+ return 1 if ((($$iface{"bootproto"} eq "static" && $$iface{"address"} && $$iface{"netmask"}) || $$iface{"bootproto"} ne "static") && $$iface{"essid"});
}
elsif ($type eq "plip")
{