vpn: load tun in case of openvpn

This commit is contained in:
Nico Schottelius 2023-08-04 19:50:29 +02:00
parent ea0f4b87c6
commit 6892c37d35
1 changed files with 1 additions and 0 deletions

1
vpn.sh
View File

@ -19,6 +19,7 @@ case "$1" in
server*)
f=/etc/openvpn/${1}.conf
if [ -f "$f" ]; then
sudo modprobe tun
sudo openvpn --config ${f}
else
echo "Config file $f is missing"