diff --git a/bsp/default/root_file_system/etc/config/firmware.tpl b/bsp/default/root_file_system/etc/config/firmware.tpl deleted file mode 100644 index 1c2e7d6..0000000 --- a/bsp/default/root_file_system/etc/config/firmware.tpl +++ /dev/null @@ -1,4 +0,0 @@ -config upgrade 'upgrade' - option path '${UPGRADE_PATH}' - option auto 0 - option remote 1 \ No newline at end of file diff --git a/src/packages/fff/fff-sysupgrade/Makefile b/src/packages/fff/fff-sysupgrade/Makefile new file mode 100644 index 0000000..ded9852 --- /dev/null +++ b/src/packages/fff/fff-sysupgrade/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-sysupgrade +PKG_VERSION:=0.0.1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-sysupgrade + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-sysupgrade + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken sysupgrade + URL:=http://www.freifunk-franken.de + DEPENDS:=+fff-boardname +endef + +define Package/fff-sysupgrade/description + This is the Freifunk Franken Firmware sysupgrade package. + This packages provides an semi automated sysupgrade script. +endef + +define Build/Prepare + echo "all: " > $(PKG_BUILD_DIR)/Makefile +endef + +define Build/Configure + # nothing +endef + +define Build/Compile + # nothing +endef + +define Package/fff-sysupgrade/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,fff-sysupgrade)) diff --git a/bsp/default/root_file_system/etc/sysupgrade.conf b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.conf similarity index 100% rename from bsp/default/root_file_system/etc/sysupgrade.conf rename to src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.conf diff --git a/bsp/default/root_file_system/etc/sysupgrade.sh b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh similarity index 91% rename from bsp/default/root_file_system/etc/sysupgrade.sh rename to src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh index 8803818..e6bc7d9 100755 --- a/bsp/default/root_file_system/etc/sysupgrade.sh +++ b/src/packages/fff/fff-sysupgrade/files/etc/sysupgrade.sh @@ -3,6 +3,8 @@ cd /tmp/ . /etc/firmware_release +. /etc/community.cfg + BOARD=$(uci get board.model.name) #decide SOC @@ -20,7 +22,7 @@ case $BOARD in BOARD="cpe210-220-510-520" ;; esac -wget $(uci get firmware.upgrade.path)/release.nfo +wget "${UPGRADE_PATH}/release.nfo" if [ ! -f release.nfo ]; then echo -ne "Latest release information not found. Please try to update manually.\n\n" exit 1 @@ -51,8 +53,8 @@ fi FILE="${FIRMWARE_COMMUNITY}-${VERSION}-${SOC}-generic-${BOARD}-squashfs-sysupgrade.bin" echo -ne "Downloading $FILE\n\n" -wget $(uci get firmware.upgrade.path)/${FILE} -wget $(uci get firmware.upgrade.path)/${FILE}.sha256 +wget "${UPGRADE_PATH}/${FILE}" +wget "${UPGRADE_PATH}/${FILE}.sha256" echo -ne "\ndone. Comparing sha256 sums: " sha256sum -c ${FILE}.sha256 diff --git a/src/packages/fff/fff/Makefile b/src/packages/fff/fff/Makefile index 52ccc14..9f91b31 100644 --- a/src/packages/fff/fff/Makefile +++ b/src/packages/fff/fff/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fff PKG_VERSION:=0.0.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR:=$(BUILD_DIR)/fff @@ -22,7 +22,8 @@ define Package/fff-base +fff-fastd \ +fff-firewall \ +fff-support \ - +fff-network + +fff-network \ + +fff-sysupgrade endef define Package/fff-base/description