[PATCH 2/3] Fixes sysupgrade.sh for WR841

Tobias Klaus tk+ff at meskal.net
Fr Apr 22 17:22:17 CEST 2016


hackish proposal to find "right" images names for WR841

Signed-off-by: Tobias Klaus <tk+ff at meskal.net>
---
 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}
-- 
2.8.1




Mehr Informationen über die Mailingliste franken-dev