[PATCH 4/4] sysupgrade: Add upgrade path fallback

Fabian Bläse fabian at blaese.de
Di Nov 19 21:19:40 CET 2019


If no hoodfile is present or hoodfile support is not compiled
into the firmware, no upgrade path is available.

Therefore a fallback to our default firmware host is added.

Signed-off-by: Fabian Bläse <fabian at blaese.de>
---
This patch depends on changes made in Patch 3/4 of this series
---
 src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh
index 6133966..dea6ccb 100755
--- a/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh
+++ b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh
@@ -7,9 +7,8 @@ cd /tmp/
 UPGRADE_PATH="$(getUpgradePath)"
 
 if [ -z "$UPGRADE_PATH" ]; then
-  echo "Upgrade path not set! Aborting."
-  echo ""
-  exit 1
+  UPGRADE_PATH="http://dev.freifunk-franken.de"
+  echo "Upgrade path not set! Falling back to $UPGRADE_PATH"
 fi
 
 #add firmware path to UPGRADE_PATH
-- 
2.24.0



Mehr Informationen über die Mailingliste franken-dev