From patchwork Tue Nov 19 20:19:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [3/4] sysupgrade: Adjust sysupgrade for changed firmware binary structure From: Fabian Blaese X-Patchwork-Id: 1218 Message-Id: <20191119201940.70424-3-fabian@blaese.de> To: franken-dev@freifunk.net Date: Tue, 19 Nov 2019 21:19:39 +0100 As we now have multiple variants, the binaries on the update server should be seperated into different directories. This ajusts sysupgrade.sh for this updated file structure. Signed-off-by: Fabian Bläse Reviewed-by: Christian Dresel --- src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh index 2b749f3..6133966 100755 --- a/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh +++ b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh @@ -12,6 +12,9 @@ if [ -z "$UPGRADE_PATH" ]; then exit 1 fi +#add firmware path to UPGRADE_PATH +UPGRADE_PATH="${UPGRADE_PATH}/${VARIANT}/current" + BOARD=$(uci get board.model.name) echo "Hardware: $BOARD"