#!/bin/bash if test "$1" == "start" then (openvpn /userdata/system/openvpn/.ovpn &) 2>&1 | tee -a /var/log/vpn.log elif test "$1" == "stop" then killall -9 openvpn else curl ipinfo.io 2>/dev/null | jq -a '.ip, .city, .country' | tr '\n' ' ' | sed s:\"::g fi