diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-09-06 14:18:56 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-09-06 14:18:56 +0000 |
commit | d52f2b451240b750c15f875d93c5add77fc72f8d (patch) | |
tree | 312538f5239fa067c52cdfb24afd26e9ed4170bc /perl-install | |
parent | f16478059a58518313a8d0571e927cdcb2fa7e12 (diff) | |
download | drakx-d52f2b451240b750c15f875d93c5add77fc72f8d.tar drakx-d52f2b451240b750c15f875d93c5add77fc72f8d.tar.gz drakx-d52f2b451240b750c15f875d93c5add77fc72f8d.tar.bz2 drakx-d52f2b451240b750c15f875d93c5add77fc72f8d.tar.xz drakx-d52f2b451240b750c15f875d93c5add77fc72f8d.zip |
(del_intf) update for adsl/modem/isdn connections
Diffstat (limited to 'perl-install')
-rwxr-xr-x | perl-install/standalone/drakconnect | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index 7f1030f37..be25be801 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -660,13 +660,14 @@ sub del_intf() { list => [ keys %$intf, grep { -f "/etc/ppp/peers/$_" } qw(adsl isdn) ], } ], post => sub { !$::testing and eval { - if (member($intf2delete, qw(adsl isdn))) { - system("service internet stop"); - # system("ifdown " . $intf2delete eq "isdn" : "ippp0" : "ppp0"); - rm_rf("/etc/ppp/peers/$intf2delete"); - if (any { /$intf2delete/ } cat_("/etc/sysconfig/network-scripts/net_cnx_up")) { - unlink "/etc/sysconfig/network-scripts/net_cnx_$_" foreach qw(up down); - } + if (member($intf2delete, qw(adsl modem)) { + rm_rf("/etc/ppp/peers/ppp0"); + rm_rf("/etc/sysconfig/network-scripts/ifcfg-ppp0"); + } + if ($intf2delete eq 'adsl') { + rm_rf("/etc/sysconfig/network-scripts/ifcfg-sagem"); + } elsif ($intf2delete eq 'isdn') { + rm_rf("/etc/sysconfig/network-scripts/ifcfg-ippp0"); } else { system("ifdown $intf2delete"); rm_rf("/etc/sysconfig/network-scripts/ifcfg-$intf2delete"); |