diff options
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/network.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index ac3f3f64d..44e665ad3 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -144,6 +144,9 @@ sub write_interface_conf { my ($mac_address) = `LC_ALL= LANG= $::prefix/sbin/ip -o link show $intf->{DEVICE} 2>/dev/null` =~ m|.*link/ether\s([0-9a-z:]+)\s|; $intf->{HWADDR} &&= $mac_address; #- set HWADDR to MAC address if required + #- write interface MAC address in iftab + substInFile { s/^$intf->{DEVICE}\s+.*\n//; $_ .= qq($intf->{DEVICE}\t$mac_address\n) if eof } "$::prefix/etc/iftab"; + my @ip = split '\.', $intf->{IPADDR}; my @mask = split '\.', $intf->{NETMASK}; |