From 2888e4a2cc3ab16b3420d9436c6636f1a78365d4 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 31 Mar 2013 20:54:53 +0100 Subject: Revert "always clean up" On remove, we don't always have enough info to determine the mountpoint, that's why I didn't cleanup! --- hal-automounter.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hal-automounter.pl b/hal-automounter.pl index 41e488d..20ab563 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; } -- cgit v1.2.3