1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-17 23:30:11 -07:00

x86 initial

This commit is contained in:
KM4ACK 2022-10-20 13:45:37 -05:00
parent ab23f2579b
commit 44eb45b97d

View File

@ -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 &