summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-23 15:52:17 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-23 15:52:17 +0000
commit32ac06bd7dc5ec3497114d6e0b83565c1b04121a (patch)
treeae1ce7b795744bd1586a3c90e36365af9e8ec583 /perl-install/standalone
parent6287e4f11e89abf82d31cfbd92ca79a315157a53 (diff)
downloaddrakx-32ac06bd7dc5ec3497114d6e0b83565c1b04121a.tar
drakx-32ac06bd7dc5ec3497114d6e0b83565c1b04121a.tar.gz
drakx-32ac06bd7dc5ec3497114d6e0b83565c1b04121a.tar.bz2
drakx-32ac06bd7dc5ec3497114d6e0b83565c1b04121a.tar.xz
drakx-32ac06bd7dc5ec3497114d6e0b83565c1b04121a.zip
(del_intf) down the network interface when deleting it
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 2aadfed92..1992d538e 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -616,6 +616,7 @@ sub del_intf() {
data => [ { label => N("Net Device"), val => \$intf2delete, list => [ keys %$intf ], allow_empty_list => 1 } ],
post => sub {
!$::testing and eval {
+ system("ifdown $intf2delete");
modules::mergein_conf('/etc/modules.conf');
modules::remove_alias($intf2delete);
modules::write_conf();