summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:30:30 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 16:30:30 +0000
commit4183ce9f660f6a7ceceec889ed064f0c52e17128 (patch)
treec8f0774155fe8af742671b7e4f5d2c750be18bd5 /common
parent28389d18b221a04520db90bfce554eca71cefebd (diff)
downloaddrakwizard-4183ce9f660f6a7ceceec889ed064f0c52e17128.tar
drakwizard-4183ce9f660f6a7ceceec889ed064f0c52e17128.tar.gz
drakwizard-4183ce9f660f6a7ceceec889ed064f0c52e17128.tar.bz2
drakwizard-4183ce9f660f6a7ceceec889ed064f0c52e17128.tar.xz
drakwizard-4183ce9f660f6a7ceceec889ed064f0c52e17128.zip
(is_dhcp) tag 'itf' parameter as optionnal as it really is
Diffstat (limited to 'common')
-rw-r--r--common/IFCFG.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/IFCFG.pm b/common/IFCFG.pm
index 38eed528..942a9f01 100644
--- a/common/IFCFG.pm
+++ b/common/IFCFG.pm
@@ -56,10 +56,10 @@ sub new {
}
sub is_dhcp {
- my ($self, $itf) = @_;
+ my ($self, $o_itf) = @_;
- $itf ||= default_itf();
- $self->{itf}{$itf}{BOOTPROTO} eq 'dhcp';
+ $o_itf ||= default_itf();
+ $self->{itf}{$o_itf}{BOOTPROTO} eq 'dhcp';
}
#- TODO : return the main interface