[PATCH 4/4] sysupgrade: Add upgrade path fallback

mail at adrianschmutzler.de mail at adrianschmutzler.de
Mi Nov 20 00:32:05 CET 2019


Hi,

> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces at freifunk.net] On Behalf
> Of Fabian Bläse
> Sent: Dienstag, 19. November 2019 21:20
> To: franken-dev at freifunk.net
> Subject: [PATCH 4/4] sysupgrade: Add upgrade path fallback
> 
> 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 <fabian at blaese.de>
> ---
> 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"

Kein https?

Mir stellt sich hier die Frage, ob man das ggf. in die /etc/firmware_release tun will, anstatt es irgendwo in der Firmware hardzucoden. Ich bin mir aber nicht sicher, ist nur so ne blöde Idee.

Grüße

Adrian

> +  echo "Upgrade path not set! Falling back to $UPGRADE_PATH"
>  fi
> 
>  #add firmware path to UPGRADE_PATH
> --
> 2.24.0
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : openpgp-digital-signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 834 bytes
Beschreibung: nicht verfügbar
URL         : <https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20191120/f1bb3379/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev