diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-10-10 23:12:02 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-10-10 23:12:02 +0200 |
| commit | 125237e4a7cf7e6d2ec28565d4403ab9c9908d85 (patch) | |
| tree | 7a073506aa1f8c45fdee7f09a9aab03c99e9ee86 /bin/fauvpn | |
| parent | 4d23cadff2f75d1b6311d509ecd07e8330071906 (diff) | |
| download | dotfiles-125237e4a7cf7e6d2ec28565d4403ab9c9908d85.tar.gz dotfiles-125237e4a7cf7e6d2ec28565d4403ab9c9908d85.zip | |
add generic shell helper scripts
Diffstat (limited to 'bin/fauvpn')
| -rwxr-xr-x | bin/fauvpn | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/fauvpn b/bin/fauvpn new file mode 100755 index 0000000..9d2d484 --- /dev/null +++ b/bin/fauvpn @@ -0,0 +1,25 @@ +#!/bin/sh + +# Run openvpn with fau settings in eather full or split mode + +# Author: Florian Fischer +# License: WTFPL + +if test -n "$1"; then + if test "$1" = "full"; then + MODE=Full + elif test "$1" = "split"; then + MODE=Split + fi +fi + +if test -z "$MODE"; then + echo "Usage: $0 [full | split]" + exit 1 +fi + +pushd . >/dev/null +cd $HOME/Documents/MyDocuments/Study/FAU-Erlangen/Allgemein && \ +sudo openvpn FAU-${MODE}tunnel.ovpn +popd >/dev/null + |
