Other unmount autofs mounted filesystem and tell automount about it

When I automount a USB stick, it automounts great. But, if I then umount /media/USB, it unmounts it, but leaves an empty folder /media/USB lying around. Is there a way to tell automount you unmounted an automounted filesystem so that it cleans up and there isn't any cruft leftover in /media?
 
Cleanup is a nice idea, but I can't see a way to achieve it in any autofs-related manual page.



autofs aside: there is automated cleanup when I perform a safe eject with KDE Plasma, which uses sysutils/bsdisks/.
 
Back
Top