Created
April 6, 2015 19:18
-
-
Save pettazz/ea565f52239eee9477d8 to your computer and use it in GitHub Desktop.
make transmission wait for openvpn
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 | |
SERVICE=openvpn; | |
while [[ test $(ps -ef |grep ${SERVICE}) -gt 0 ]] | |
do | |
echo "waiting for openvpn..." | |
sleep 1m | |
done | |
service transmission-daemon start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment