Last active
March 30, 2016 19:49
-
-
Save ddworken/d87e8f36496325890685f257e994d59e to your computer and use it in GitHub Desktop.
toggles 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 | |
if $(/usr/sbin/service openvpn status | grep -q 'Active: active'); then | |
/usr/sbin/service openvpn stop | |
else | |
/usr/sbin/service openvpn start | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment