pivpn/ciscripts/test.sh
2022-08-01 22:38:19 +02:00

14 lines
234 B
Bash

#!/bin/bash
if command -v systemctl > /dev/null; then
systemctl status openvpn
elif command -v rc-service > /dev/null; then
rc-service openvpn status
fi
pivpn add -n foo
pivpn -qr foo
pivpn -bk
pivpn -l
pivpn -c
pivpn -r foo -y