From c1090119c90ae34b9dc99b2a63e8538a46e02750 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 12 Oct 2004 02:19:48 +0000 Subject: (del_intf) fix crash introduced by trainee just before the release :-( --- perl-install/standalone/drakconnect | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index e344d4e36..90ef8419d 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -691,17 +691,17 @@ sub del_intf() { post => sub { !$::testing and eval { if (member($intf2delete, qw(adsl modem))) { - rm_rf("/etc/ppp/peers/ppp0"); - rm_rf("/etc/sysconfig/network-scripts/ifcfg-ppp0"); + eval { rm_rf("/etc/ppp/peers/ppp0") }; + eval { rm_rf("/etc/sysconfig/network-scripts/ifcfg-ppp0") }; } if ($intf2delete eq 'adsl') { - rm_rf("/etc/sysconfig/network-scripts/ifcfg-sagem"); + eval { rm_rf("/etc/sysconfig/network-scripts/ifcfg-sagem") }; } elsif ($intf2delete eq 'isdn') { - rm_rf("/etc/sysconfig/network-scripts/ifcfg-ippp0"); + eval { rm_rf("/etc/sysconfig/network-scripts/ifcfg-ippp0") }; } else { system("ifdown $intf2delete"); - rm_rf("/etc/sysconfig/network-scripts/$intf2delete"); - rm_rf("/etc/sysconfig/network-scripts/ifcfg-$intf2delete"); + eval { rm_rf("/etc/sysconfig/network-scripts/$intf2delete") }; + eval { rm_rf("/etc/sysconfig/network-scripts/ifcfg-$intf2delete") }; } }; $faillure = $@; -- cgit v1.2.1