On Fri, 24 May 2019 17:06:17 -0600 Barry Roberts <[email protected]> wrote:
> In thinking more about it, the one thing I > REALLY want is to have the cifs shares umount cleanly. And that may > be too late. Once I unplug the thunderbolt cable, I'm not sure > there's a good way to cleanly umount them. That's what bugs me the > most, is if I do that, then it takes forever to shutdown, and > everything seems slow with a 4-5 broken mounts. I don't know what the thunderbolt cable is or how it fits into this. There is an action, "down", that may run the script just before the connection is actually shut down, and another one, "post-down", that runs after the connection is shut down. You might have enough time to do what you need in the "down" action. Of course, if NetworkManager's first clue is that you have pulled the plug on the network, it's probably too late. > I might have to just > remember to manually run a umount script before I un-dock, but I think > I'll try the nm event script first. -- "When we talk of civilization, we are too apt to limit the meaning of the word to its mere embellishments, such as arts and sciences; but the true distinction between it and barbarism is, that the one presents a state of society under the protection of just and well-administered law, and the other is left to the chance government of brute force." - The Rev. James White, Eighteen Christian Centuries, 1889 Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB https://charlescurley.com /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
