[PATCH 2/3] Fixes sysupgrade.sh for WR841
Tim Niemeyer
tim at tn-x.org
Fr Apr 22 18:01:35 CEST 2016
Am Freitag, den 22.04.2016, 17:22 +0200 schrieb Tobias Klaus:
> 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-/")
> +
Das sollte nicht nötig sein, wenn wir das Namensschema übernehmen, würde
in "BOARD=$(uci get board.model.name)" schon das richtige drin stehen.
Tim
> 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
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 473 bytes
Beschreibung: This is a digitally signed message part
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160422/c9829367/attachment-0002.sig>
Mehr Informationen über die Mailingliste franken-dev