Update update.sh

Script fails if /boot/adsb-config.txt exists but /boot/adsbfi-env does not. This is the case on an initial run. 
I propose:
Do not check for /boot adsb-config.txt in the configuration. Simply use /boot/adsbfi-env if it exists, /etc/default/adsbfi otherwise.
This commit is contained in:
johna777 2023-01-28 15:17:53 -05:00 • committed by GitHub
commit 536f59a73c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,8 +121,8 @@ if diff "$GIT/update.sh" "$IPATH/update.sh" &>/dev/null; then
exit $?
fi
if [ -f /boot/adsb-config.txt ]; then
source /boot/adsb-config.txt
if [ -f /boot/adsbfi-env ]; then
# source /boot/adsb-config.txt
source /boot/adsbfi-env
else
source /etc/default/adsbfi