kopia lustrzana https://github.com/km4ack/pi-build
backup pat config file
rodzic
c71c3ba7ed
commit
6f751cc271
|
@ -15,6 +15,9 @@ source $MYPATH/config
|
|||
PAT(){
|
||||
PORT=8080
|
||||
cd $DIR
|
||||
if [ -f $HOME/.wl2k/config.json ]; then
|
||||
cp $HOME/.wl2k/config $DIR
|
||||
fi
|
||||
NEWPATV=$(curl -s https://github.com/la5nta/pat/releases | grep armhf | head -1 | sed 's/.*pat_/pat_/' | sed 's/<\/a>.*$//')
|
||||
NEWPAT=$(echo $NEWPATV | sed 's/pat_//' | sed 's/_linux_armhf.deb//' | sed 's/0\.//')
|
||||
wget --tries 2 --connect-timeout=60 https://github.com/la5nta/pat/releases/download/v0.$NEWPAT/$NEWPATV
|
||||
|
@ -38,6 +41,10 @@ jq '.ax25.rig = '\"my-rig\"'' $HOME/.wl2k/config.json | jq '.ardop.rig = '\"my-r
|
|||
mv $HOME/Desktop/config.json $FIG
|
||||
sed -i 's/"enable_http": false,/"enable_http": true,/' $FIG
|
||||
|
||||
if [ -f $DIR/config.json }; then
|
||||
mv $DIR/config.json $HOME/.wl2k/
|
||||
fi
|
||||
|
||||
}
|
||||
##################################
|
||||
# PAT MENU
|
||||
|
|
Ładowanie…
Reference in New Issue