fff-hoodutils: Add fallback for upgrade path

If no hoodfile is present or hoodfile support is not compiled
into the firmware, no upgrade path is available. This currently
is the case for layer3 variant.

A fallback to our default firmware host is added. At the moment
both variants don't have a trust anchor for TLS and the wget, that
is currently used, doesn't support TLS. Therefore it is currently
necessary to use a unencrypted http URL.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
Fabian Bläse 2019-11-20 22:27:45 +01:00
parent be04d36784
commit d968665704
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-hoodutils
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -30,7 +30,8 @@ getUpgradePath() {
json_get_var upath upgrade_path
upgrade_path="$upath"
else
return 1
upgrade_path="http://dev.freifunk-franken.de"
>&2 echo "Upgrade path not set! Falling back to $upgrade_path"
fi
# add full firmware path for current firmwares variant