mirror of
https://github.com/lloeki/toolbelt.git
synced 2025-12-06 10:04:40 +01:00
discard openvpn
This commit is contained in:
parent
7e1bb4b033
commit
e7833c745a
1 changed files with 0 additions and 20 deletions
20
ovpn.sh
20
ovpn.sh
|
|
@ -1,20 +0,0 @@
|
||||||
#!/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
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue