15 lines
230 B
Bash
15 lines
230 B
Bash
#!/usr/bin/env sh
|
|
|
|
create_net_dev() {
|
|
mkdir -p /dev/net
|
|
mknod /dev/net/tun c 10 200
|
|
chmod 600 /dev/net/tun
|
|
}
|
|
|
|
connect_vpn() {
|
|
openvpn --config "$OVPN_CONFIGURATION_FILE" --daemon
|
|
}
|
|
|
|
create_net_dev
|
|
connect_vpn
|
|
"$@"
|