From patchwork Tue Nov 19 20:19:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [4/4] sysupgrade: Add upgrade path fallback From: Fabian Blaese X-Patchwork-Id: 1217 Message-Id: <20191119201940.70424-4-fabian@blaese.de> To: franken-dev@freifunk.net Date: Tue, 19 Nov 2019 21:19:40 +0100 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 Reviewed-by: Christian Dresel --- 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