> All of this is in a script, 50ifupdown, which lives > in /etc/NetworkManager/dispatcher.d. I use it with Network Manager, but > you can probably adapt it to other connection managers.
I've found a few samples of those on stackoverflow. I think that's the direction I'll head. 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 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. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
