diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-23 10:14:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-23 10:14:58 +0000 |
commit | 2f827e780cc59cced92537d81774b4c131abb528 (patch) | |
tree | 81568ae2e551ab325730eea3255f2793e003a48d /perl-install/standalone/drakgw | |
parent | c9f86c7e305b54214444ad538fef1dbd98648f5a (diff) | |
download | drakx-2f827e780cc59cced92537d81774b4c131abb528.tar drakx-2f827e780cc59cced92537d81774b4c131abb528.tar.gz drakx-2f827e780cc59cced92537d81774b4c131abb528.tar.bz2 drakx-2f827e780cc59cced92537d81774b4c131abb528.tar.xz drakx-2f827e780cc59cced92537d81774b4c131abb528.zip |
fix drakgw removing MII_NOT_SUPPORTED parameter from ifcfg file (#9076)
Diffstat (limited to 'perl-install/standalone/drakgw')
-rwxr-xr-x | perl-install/standalone/drakgw | 6 |
1 files changed, 5 insertions, 1 deletions
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}") )); } |