A couple of minor bug fixes, and several enhancements.
The major addition is the pre-install hook, which allows user to
intercept processing between the download and install. This allows,
for example, copying the download artifacts (firmware-manifest.json)
to persistent storage and saving it for later reference. Other
uses include automating backups as part of the upgrade process.
See /etc/owut.d/pre-install.sh for examples.
- bugs
https://github.com/efahl/owut/commit/
dc521b2 version list bug fix
https://github.com/efahl/owut/commit/
75faac2 fix OpenWRT firmware version comparisons
- enhancements
https://github.com/efahl/owut/commit/
0937933 add '--pre-install' hook
https://github.com/efahl/owut/commit/
23c2066 reduce 'dump' output verbosity
https://github.com/efahl/owut/commit/
cc9618d tweak the undocumented '--device' option handling
https://github.com/efahl/owut/commit/
2ec138b improve help
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=owut
-PKG_SOURCE_DATE:=2024-07-14
+PKG_SOURCE_DATE:=2024-07-21
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=75faac216707062bdbc1168dc3087b22eccef493
+PKG_SOURCE_VERSION:=0937933c605f15187b9c1df0632ce65f3be436de
PKG_SOURCE_URL:=https://github.com/efahl/owut.git
-PKG_MIRROR_HASH:=e22035f4bc03c3c9d54cf08b5db29787b009cd186ed82f0b97d5f0c7b412318c
+PKG_MIRROR_HASH:=2d4a600fd4449296e276e997330f704c4c941e44d6748614049e2ae1e64a4ebb
PKG_MAINTAINER:=Eric Fahlgren <ericfahlgren@gmail.com>
PKG_LICENSE:=GPL-2.0-only
define Build/Compile
endef
+define Package/owut/conffiles
+/etc/owut.d/
+endef
+
define Package/owut/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_CONF) $(PKG_BUILD_DIR)/files/owut.defaults $(1)/etc/uci-defaults/attendedsysupgrade-owut
+ $(INSTALL_DIR) $(1)/etc/owut.d
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/pre-install.sh $(1)/etc/owut.d/pre-install.sh
+
$(INSTALL_DIR) $(1)/usr/share/ucode/utils
$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/argparse.uc $(1)/usr/share/ucode/utils