From patchwork Fri Apr 22 15:22:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] Fixes sysupgrade.sh for WR841 From: Tobias Klaus X-Patchwork-Id: 84 Message-Id: <1461338538-4439-3-git-send-email-tk+ff@meskal.net> To: franken-dev@freifunk.net Cc: Tobias Klaus Date: Fri, 22 Apr 2016 17:22:17 +0200 hackish proposal to find "right" images names for WR841 Signed-off-by: Tobias Klaus --- bsp/default/root_file_system/etc/sysupgrade.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsp/default/root_file_system/etc/sysupgrade.sh b/bsp/default/root_file_system/etc/sysupgrade.sh index 2da6136..6e6e69c 100755 --- a/bsp/default/root_file_system/etc/sysupgrade.sh +++ b/bsp/default/root_file_system/etc/sysupgrade.sh @@ -41,6 +41,9 @@ if [ $VERSION -eq $FIRMWARE_VERSION ]; then done fi +#fix image name for current openwrt +BOARD=$(echo $BOARD | sed -e "s/841[nd]\{1,2\}-/841-/") + FILE="${FIRMWARE_COMMUNITY}-${VERSION}-${SOC}-generic-${BOARD}-squashfs-sysupgrade.bin" echo -ne "Downloading $FILE\n\n" wget $(uci get firmware.upgrade.path)/${FILE}