From 1bd44fa9be945033cb1f511d37d810b1ce2da9b5 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Tue, 2 Nov 2021 15:58:46 -0500 Subject: [PATCH] fix pat port variable --- pat-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pat-functions b/pat-functions index 349be1a..493cd2e 100644 --- a/pat-functions +++ b/pat-functions @@ -141,7 +141,7 @@ CALL=$(grep mycall $CONFIG | head -1 | sed s'/"mycall": //;s/"//g;s/,//;s/ //g' GRID=$(grep locator $CONFIG | sed 's/"//g;s/locator://;s/,//;s/ //g') ARDOPMAX=$(grep -i max $CONFIG | sed 's/"Max":\ //;s/ //g') PTT=$(grep ptt_ctrl $CONFIG | tail -1 | sed 's/"ptt_ctrl":\ //;s/,//;s/ //g') -PORT=$(grep http_addr $CONFIG | sed 's/^.*0://;s/",//') +PORT=$(grep http_addr $CONFIG | awk '{print $2}' | sed 's/.*://;s/",//') RIG=$(grep RIGCONTROL $HOME/patmenu2/config | sed 's/RIGCONTROL=//') TELNET=$(grep telnet, $SMD) ARDOP=$(grep ardop, $SMD)