mirror of
https://github.com/lloeki/toolbelt.git
synced 2025-12-06 10:04:40 +01:00
a few scripts
This commit is contained in:
commit
b9948f0dae
9 changed files with 479 additions and 0 deletions
20
ovpn.sh
Executable file
20
ovpn.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue