diff options
Diffstat (limited to 'perl-install/network.pm')
-rw-r--r-- | perl-install/network.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network.pm b/perl-install/network.pm index 15a4cbb02..ca4a66f80 100644 --- a/perl-install/network.pm +++ b/perl-install/network.pm @@ -16,6 +16,7 @@ use log; sub read_conf { my ($file) = @_; my %netc = getVarsFromSh($file); + $netc->{dnsServer} = $netc->{NS0}; \%netc; } @@ -129,7 +130,7 @@ sub sethostname { sub dnsServers { my ($netc) = @_; - map { $netc->{$_} } qw(dnsServer dnsServer2 dnsServer3); + grep { $_ } map { $netc->{$_} } qw(dnsServer dnsServer2 dnsServer3); } sub getNet() { |