automount NFS when on specific wifi

OK, what follows is an adapted version of a shell script that I have running on my local Macs to auto mount certain AFP volumes when I'm at home. You'll need to adjust the mount_nfs line, enter the MAC address for your home router, and adjust the volume name for the mount (if you want).

I have this script triggered to run every 5 minutes via a launchd file in ~/Library/LaunchAgents

Code on Pastebin