summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-29 10:06:15 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-29 10:06:15 +0000
commit06546eb5734acf99ae9e7781bdea5bbaa0300f77 (patch)
tree57dfffac3a6475b57c5b87b7433ad2779cc08f3c
parent40aa4ffbec525f85bda0ca3b1992534aa06270b7 (diff)
downloaddrakx-06546eb5734acf99ae9e7781bdea5bbaa0300f77.tar
drakx-06546eb5734acf99ae9e7781bdea5bbaa0300f77.tar.gz
drakx-06546eb5734acf99ae9e7781bdea5bbaa0300f77.tar.bz2
drakx-06546eb5734acf99ae9e7781bdea5bbaa0300f77.tar.xz
drakx-06546eb5734acf99ae9e7781bdea5bbaa0300f77.zip
write cnx scripts for cable connection too
-rw-r--r--perl-install/network/netconnect.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 70345bb27..33a8d614d 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -854,6 +854,12 @@ notation (for example, 1.2.3.4).")),
$ethntf->{MII_NOT_SUPPORTED} = bool2yesno(!$hotplug);
$ethntf->{HWADDR} = $track_network_id or delete $ethntf->{HWADDR};
$in->do_pkgs->install($netcnx->{dhcp_client}) if $auto_ip;
+ write_cnx_script($netc, "cable", qq(
+/sbin/ifup $netc->{NET_DEVICE}
+),
+ qq(
+/sbin/ifdown $netc->{NET_DEVICE}
+), $netcnx->{type}) if $netcnx->{type} eq 'cable';
return is_wireless_intf($module) ? "wireless" : "static_hostname";
},