From c5106c6d1ae46ffe22cdfa348aebce2587583414 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 17 Aug 2004 06:44:18 +0000 Subject: fix suckiness (write proper iftab) --- perl-install/network/network.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index 146619e07..a30eb1909 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -145,7 +145,7 @@ sub write_interface_conf { $intf->{HWADDR} &&= $mac_address; #- set HWADDR to MAC address if required #- write interface MAC address in iftab (if any) - substInFile { s/^$intf->{DEVICE}\s+.*\n//; $_ .= qq($intf->{DEVICE}\t$mac_address\n) if eof } "$::prefix/etc/iftab" if $mac_address; + substInFile { s/^$intf->{DEVICE}\s+.*\n//; $_ .= qq($intf->{DEVICE}\tmac $mac_address\n) if eof } "$::prefix/etc/iftab" if $mac_address; my @ip = split '\.', $intf->{IPADDR}; my @mask = split '\.', $intf->{NETMASK}; -- cgit v1.2.1