pivpn/ciscripts/test.sh

14 lines
231 B
Bash
Raw Normal View History

#!/bin/bash
2022-07-26 13:20:35 +00:00
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