From 2f827e780cc59cced92537d81774b4c131abb528 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 23 Mar 2004 10:14:58 +0000 Subject: fix drakgw removing MII_NOT_SUPPORTED parameter from ifcfg file (#9076) --- perl-install/standalone/drakgw | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/drakgw') diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw index f491302b9..7fa682664 100755 --- a/perl-install/standalone/drakgw +++ b/perl-install/standalone/drakgw @@ -370,13 +370,17 @@ if ($reconf_dhcp_server_intf && !$::testing) { my $network_scripts = "/etc/sysconfig/network-scripts"; my $ifcfg = "$network_scripts/ifcfg-$device"; renamef($ifcfg, "$network_scripts/old.ifcfg-$device"); - output($ifcfg, qq(DEVICE=$device + output($ifcfg, + join('', qq(DEVICE=$device BOOTPROTO=static IPADDR=$server_ip NETMASK=$netmask NETWORK=$lan_address.0 BROADCAST=$lan_address.255 ONBOOT=yes +), + if_($conf && $conf->{MII_NOT_SUPPORTED}, + "MII_NOT_SUPPORTED=$conf->{MII_NOT_SUPPORTED}") )); } -- cgit v1.2.1