The connect script checks the network name of the wireless net work you are connected to. If it is the same as the name in the script, it assumes you are "at the office" and mounts the file server locally. If not, it will connect to you default VPN connection, and upon sucessfully connecting, mount the file share.
The disconnect script ejects the share and disconnects the VPN if needed.
Subscribe for our newsletter with best Mac offers from MacUpdate.