diff --git a/start-pat2m b/start-pat2m index 5c0b21f..2b47fe4 100755 --- a/start-pat2m +++ b/start-pat2m @@ -5,7 +5,6 @@ clear - TEMP=$HOME/patmenu2/temp MYPATH=$HOME/patmenu2 LOGO=$MYPATH/pmlogo.png @@ -64,7 +63,7 @@ yad --width=350 --height=75 --title="Start Modem" --timeout=3 --timeout-indicato if [ $AMRRON = "no" ] > /dev/null 2>&1 then -sudo killall direwolf kissattach > /dev/null 2>&1 +sudo -A killall direwolf kissattach > /dev/null 2>&1 fi sleep 1 @@ -113,7 +112,7 @@ WHO=$(whoami) then CONTROL=$(cat $MYPATH/config | grep '^RIG="' | sed 's/RIG="//' | sed 's/"//' | sed 's/rigctl/rigctld/') $CONTROL & - sudo systemctl restart pat@$WHO + echo $PASS | sudo -S systemctl restart pat@$WHO fi SETRIG fi @@ -127,8 +126,8 @@ sleep 5 | yad --width=350 --height=75 --auto-close --title="Direwolf" --progress LINK=$(ls -l /tmp/kisstnc | awk '{print $NF}') #end edit. km4ack 20200307 -sudo /usr/sbin/kissattach $LINK $AXP -sudo kissparms -c 1 -p wl2k +sudo -A /usr/sbin/kissattach $LINK $AXP +sudo -A kissparms -c 1 -p wl2k echo;echo;echo #verify direwolf has started @@ -149,7 +148,7 @@ yad --title="PACKET MODEM" --width=400 --height=100 \ fi #restart pat so terminal window correctly reflects rig control -sudo systemctl restart pat@`whoami` +sudo -A systemctl restart pat@`whoami` #open pat inbox in browser export DISPLAY=:0 && xdg-open http://127.0.0.1:$PORT > /dev/null 2>&1 &