diff options
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakconnect | 12 |
1 files changed, 6 insertions, 6 deletions
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 = $@; |