vermaden / automount

Simple devd(8) based automounter for FreeBSD
66 stars 20 forks source link

More reliable cleanup #44

Closed probonopd closed 1 year ago

probonopd commented 1 year ago

Despite having REMOVEDIRS="YES" set in /usr/local/etc/automount.conf, I find that more often than not empty directories are left over in /media.

What do you think about using the following? I am using it with great success. It finds all empty directories in /media and deletes them in one step.

find /media -depth 1 -empty -prune -delete 2>/dev/null
vermaden commented 1 year ago

I will try that, thanks :)

vermaden commented 1 year ago

Updated.

Thanks.