This tutorial has been extremely useful for me. However, my system doesn't seem to be calling the /etc/network/ip-up.d and /etc/network/if-down.d scripts. I can now mount my folder without a password, and can call the if-up.d or if-down.d scripts from the command line just fine. But there is no automatic mount when I log in, and no automatic unmount when I kill the network collection (e.g., by manually disconnecting my wifi, which I've just done as a test).

Can anyone please clarify when the scripts in if-up.d and if-down.d are called by the system?