a few scripts

This commit is contained in:
Loic Nageleisen 2013-08-22 15:40:05 +02:00
commit b9948f0dae
9 changed files with 479 additions and 0 deletions

20
ovpn.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
case "$1" in
home)
cd ~/.openvpn/adhoc
sudo openvpn --config udp.conf --daemon
;;
adhoc)
cd ~/.openvpn/adhoc
sudo openvpn --config lnageleisen.conf --auth-user-pass up --daemon
;;
stop)
sudo killall openvpn
;;
*)
echo "usage: "$(basename $0) $(ls ~/.openvpn|tr "\n" '|')"stop"
exit 1
;;
esac