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

Christian Dresel fff at chrisi01.de
Di Nov 19 21:35:46 CET 2019


nach etwas überlegen, dann doch mit einverstanden

Reviewed-by: Christian Dresel <fff at chrisi01.de>

Gruß

Christian

On 19.11.19 21:19, Fabian Bläse wrote:
> 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"
> +  echo "Upgrade path not set! Falling back to $UPGRADE_PATH"
>  fi
>  
>  #add firmware path to UPGRADE_PATH
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 833 bytes
Beschreibung: OpenPGP digital signature
URL         : <https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20191119/7415b079/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev