diff options
Diffstat (limited to 'hal-automounter.pl')
-rwxr-xr-x | hal-automounter.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hal-automounter.pl b/hal-automounter.pl index 20ab563..41e488d 100755 --- a/hal-automounter.pl +++ b/hal-automounter.pl @@ -155,11 +155,11 @@ sub device_removed { if (exists $mounted{$node}) { system('umount',$mounted{$node}); - if (remove_from_fstab($mounted{$node})) { - rmdir $mounted{$node}; - } delete $mounted{$node}; } + if (remove_from_fstab($mounted{$node})) { + rmdir $mounted{$node}; + } return; } |