This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Kill transmission-daemon if it is running | |
transmission_da_pid=$(pgrep transmission-da) | |
if [ $transmission_da_pid ]; then | |
killall transmission-daemon && echo "Closing existing tranmission-daemon processes ..." && sleep 8 | |
fi | |
# Get VPN IP to bind to | |
bind_address=$(ip addr show tun0 | grep inet | awk '{print $2}') |