Here's a script I created that seems to work on my system for this purpose. I placed it in /etc/pm/sleep.d/80_autofs
Of course, as expected, if any of the automounted shares are busy (any files open), it won't do anything for them. It's just a "best effort" attempt.
Here's a script I created that seems to work on my system for this purpose. I placed it in /etc/pm/ sleep.d/ 80_autofs
Of course, as expected, if any of the automounted shares are busy (any files open), it won't do anything for them. It's just a "best effort" attempt.