Tag: sshfs
-
Mount Share Network Event Triggered Bash Script
What this script does is, check the gateway mac address to find out if you are within your lan or in a different place. If at home, mount a share as normal. If away, mount that share as a ssh file system. #!/bin/bash gateway=$(ip route show 0.0.0.0/0 | awk ‘{print $3}’) mactest=$(arp -n -a $gateway…