Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to refresh existing HamPi update scripts #184

Open
dranch opened this issue Jun 15, 2022 · 0 comments
Open

Script to refresh existing HamPi update scripts #184

dranch opened this issue Jun 15, 2022 · 0 comments

Comments

@dranch
Copy link

dranch commented Jun 15, 2022

This is a reminder here but here is a script that can be used to refresh the initial update scripts with the hope of hopefully ever expanding in-line application upgrades vs. having to reflashing the SD card

--David
KI6ZHD

/home/pi/bin/refresh-all-update-scripts.sh

#!/bin/bash

06/15/22 - dranch: Script to support updates to upgrade scripts of select HamPi programs

cd /home/pi/bin

#enable once the updater script is in place
#wget https://raw.githubusercontent.com/dslotter/ham_radio_scripts/main/update-all-update-scripts.sh

#wsjtx_to_n3fjp.py is missing in the git repo

for I in qrz_callsign_reader.py update_fldigi_suite update_js8call_from_src update_wsjtx_from_deb update_wsjtx_from_src update_wsjtx_log.py upload_adif_log; do
wget -q -O $I.tmp https://raw.githubusercontent.com/dslotter/ham_radio_scripts/main/$I
diff $I $I.tmp 2>&1 > /dev/null
if [ $? -ne 0 ]; then
echo -e "$I updated"
mv $I.tmp $I
else
echo -e "$I unchannged"
/bin/rm $I.tmp
fi
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant