pivpn/ciscripts/test.sh

15 lines
234 B
Bash
Raw Normal View History

#!/bin/bash
2022-07-26 13:20:35 +00:00
if command -v systemctl > /dev/null; then
2022-07-27 12:53:36 +00:00
systemctl status openvpn
2022-07-26 13:20:35 +00:00
elif command -v rc-service > /dev/null; then
2022-07-27 12:53:36 +00:00
rc-service openvpn status
2022-07-26 13:20:35 +00:00
fi
2022-07-27 12:53:36 +00:00
pivpn add -n foo
pivpn -qr foo
pivpn -bk
pivpn -l
pivpn -c
pivpn -r foo -y