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.
** Attachment added: "autofs"
http://launchpadlibrarian.net/37969194/autofs
--
autofs suspend/hibernate script should be ported from apmd system to pm-utils
https://bugs.launchpad.net/bugs/506116
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to autofs in ubuntu.
--
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs