Commit 010f78d79ff4

Vincent Demeester <vincent@sbr.pm>
2025-10-17 23:29:42
scripts: fix redhat-vpn
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent d1f8902
Changed files (1)
pkgs
my
scripts
pkgs/my/scripts/bin/redhat-vpn
@@ -23,8 +23,8 @@ if [[ GRAPHICS -eq 0 ]]; then
 	NOTIFY_CMD="echo"
 fi
 
-uuid=$(echo ${connection} | awk '{print $3}')
-name=$(echo ${connection} | awk '{print $1 $2}')
+uuid=$(echo ${connection} | awk '{print $4}')
+name=$(echo ${connection} | awk '{print $1 $2 $3}')
 VPNSTATUS=$(nmcli connection show --active $uuid | wc -l)
 if [ "$VPNSTATUS" == "0" ]; then
 	key=$(authkey)