With some urging I’ve made the unmount.sh script work for samba shares. It works in preliminary testing.
I also re-wrote the script to make it quite a bit simpler to add or change the search strings and thus the types of shares that the script is capable of unmounting. So far it will unmount AFP, sshfs and Samba shares when the script detects a change in your routers MAC address.
The upside is I no longer see the SPOD or have my Finder freeze if I forgot to unmount an AFP share on my laptop. 🙂