From 536f59a73c209884edf723b27c41081c88cf625e Mon Sep 17 00:00:00 2001 From: johna777 <36684845+johna777@users.noreply.github.com> Date: Sat, 28 Jan 2023 15:17:53 -0500 Subject: [PATCH] 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. --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index e1b7eab..ec92aa5 100755 --- a/update.sh +++ b/update.sh @@ -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