Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # use tail - /var/log/syslog in terminal to check if it is executed the four lines help you spot easily
- logger -s XXXXXXXXXX
- logger -s $1
- logger -s $2
- logger -s XXXXXXXXXX
- if [ $2 = "vpn-down" ]
- then
- # Shut down eth1 when vpn fails (change eth1 to your nic)
- ifconfig eth1 down
- # this will turn off your wireless networking completely
- ip link set wlan0 down
- killall transmission-gtk
- fi
Advertisement
Add Comment
Please, Sign In to add comment