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 clear
TEMP=$HOME/patmenu2/temp TEMP=$HOME/patmenu2/temp
MYPATH=$HOME/patmenu2 MYPATH=$HOME/patmenu2
LOGO=$MYPATH/pmlogo.png 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 if [ $AMRRON = "no" ] > /dev/null 2>&1
then then
sudo killall direwolf kissattach > /dev/null 2>&1 sudo -A killall direwolf kissattach > /dev/null 2>&1
fi fi
sleep 1 sleep 1
@ -113,7 +112,7 @@ WHO=$(whoami)
then then
CONTROL=$(cat $MYPATH/config | grep '^RIG="' | sed 's/RIG="//' | sed 's/"//' | sed 's/rigctl/rigctld/') CONTROL=$(cat $MYPATH/config | grep '^RIG="' | sed 's/RIG="//' | sed 's/"//' | sed 's/rigctl/rigctld/')
$CONTROL & $CONTROL &
sudo systemctl restart pat@$WHO echo $PASS | sudo -S systemctl restart pat@$WHO
fi fi
SETRIG SETRIG
fi 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}') LINK=$(ls -l /tmp/kisstnc | awk '{print $NF}')
#end edit. km4ack 20200307 #end edit. km4ack 20200307
sudo /usr/sbin/kissattach $LINK $AXP sudo -A /usr/sbin/kissattach $LINK $AXP
sudo kissparms -c 1 -p wl2k sudo -A kissparms -c 1 -p wl2k
echo;echo;echo echo;echo;echo
#verify direwolf has started #verify direwolf has started
@ -149,7 +148,7 @@ yad --title="PACKET MODEM" --width=400 --height=100 \
fi fi
#restart pat so terminal window correctly reflects rig control #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 #open pat inbox in browser
export DISPLAY=:0 && xdg-open http://127.0.0.1:$PORT > /dev/null 2>&1 & export DISPLAY=:0 && xdg-open http://127.0.0.1:$PORT > /dev/null 2>&1 &