summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 6771b8210..57dd82c88 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -754,7 +754,7 @@ or skip and do it later."),
}
return "adsl_no_firmawre" if $adsl_answer eq N("Do it later");
- my $_b = before_leaving { fs::umount('/mnt') } if $mounted;
+ my $_b = $mounted && before_leaving { fs::umount('/mnt') };
if (!$adsl_failed) {
if (-e "$source/$file") {
cp_af("$source/$file", $destination) if !$::testing;