mirror of
https://github.com/km4ack/patmenu2.git
synced 2025-05-16 14:50:13 -07:00
fix urls and add notes
This commit is contained in:
parent
a9a248240f
commit
b57ae74075
20
autopat-vara
20
autopat-vara
@ -1,8 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#script to perform auto connects to gateways
|
#script to perform auto connects to gateways
|
||||||
#using pat winlink
|
#using pat winlink and the vara modem
|
||||||
#20191015 KM4ACK
|
#20220831 KM4ACK
|
||||||
|
|
||||||
|
#Most of this code was copied from the autopat script which does
|
||||||
|
#the same thing using the ARDOP modem.
|
||||||
|
|
||||||
MYPATH=$HOME/patmenu2
|
MYPATH=$HOME/patmenu2
|
||||||
LOGO=$MYPATH/pmlogo.png
|
LOGO=$MYPATH/pmlogo.png
|
||||||
@ -185,6 +188,19 @@ mkdir -p $HOME/tempardop/
|
|||||||
#cat file, remove first few lines, remove blanks > NEWFILE NAME
|
#cat file, remove first few lines, remove blanks > NEWFILE NAME
|
||||||
cat $FILE | tail -n +5 | grep '[^[:blank:]]' > $HOME/tempardop/tempardop.txt
|
cat $FILE | tail -n +5 | grep '[^[:blank:]]' > $HOME/tempardop/tempardop.txt
|
||||||
|
|
||||||
|
#add speed to line if not in list already
|
||||||
|
#otherwise the URL is wrong
|
||||||
|
while read -r line
|
||||||
|
do
|
||||||
|
CHECK=$(echo $line | awk '{print $6}')
|
||||||
|
if [ "$CHECK" = 500 ] || [ "$CHECK" = 2750 ]; then
|
||||||
|
echo $line >> $HOME/tempardop/temp.txt
|
||||||
|
else
|
||||||
|
echo $line | sed 's/VARA/VARA 500/' >> $HOME/tempardop/temp.txt
|
||||||
|
fi
|
||||||
|
done < $HOME/tempardop/tempardop.txt
|
||||||
|
cp $HOME/tempardop/temp.txt $HOME/tempardop/tempardop.txt
|
||||||
|
|
||||||
#pad with zeros
|
#pad with zeros
|
||||||
while read LINE
|
while read LINE
|
||||||
do DISTANCE=$(echo $LINE | awk '{ print $3 }' | sed -e :a -e 's/^.\{1,4\}$/0&/;ta')
|
do DISTANCE=$(echo $LINE | awk '{ print $3 }' | sed -e :a -e 's/^.\{1,4\}$/0&/;ta')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user