From e74b7aac9d08b0f7d8df036dfeeb9adbdc4841fd Mon Sep 17 00:00:00 2001 From: Benjamyn Love Date: Mon, 9 Jul 2018 22:19:37 +1000 Subject: [PATCH] Made the listing better --- vpnctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpnctl b/vpnctl index 273fd54..89a5a0b 100755 --- a/vpnctl +++ b/vpnctl @@ -54,7 +54,7 @@ case $1 in "list") if [[ $root -eq 1 ]] then - ls /etc/openvpn/client + ls -alh $vpnconfpath | grep conf | awk '{print $9}' | cut -d '.' -f 1 else sudo vpnctl $1 fi