attendedsysupgrade-common: give the uci-defaults script a run level
authorEric Fahlgren <ericfahlgren@gmail.com>
Thu, 31 Oct 2024 00:42:19 +0000 (17:42 -0700)
committerPaul Spooren <mail@aparcar.org>
Thu, 31 Oct 2024 01:05:03 +0000 (02:05 +0100)
Move the init script to '50-attendedsysupgrade', so it is run in the
middle of the init sequence, rather than after all the explicitly
ordered ones.  This allows later scripts, specifically the 99-level
ones, to modify the contents of the attendedsysupgrade configuration.

Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
utils/attendedsysupgrade-common/Makefile

index 5baa05d923a9c1e9cbefdd20c1c0ada71a37acd4..f927376ee8f82d62d555efa2e8d8f8041d0decaf 100644 (file)
@@ -3,7 +3,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=attendedsysupgrade-common
-PKG_VERSION:=8
+PKG_VERSION:=9
 PKG_LICENSE:=GPL-2.0
 
 include $(INCLUDE_DIR)/package.mk
@@ -49,7 +49,7 @@ endef
 
 define Package/attendedsysupgrade-common/install
        $(INSTALL_DIR) $(1)/etc/uci-defaults/
-       $(INSTALL_DATA) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade
+       $(INSTALL_DATA) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/50-attendedsysupgrade
 
        $(INSTALL_DIR) $(1)/etc/opkg/keys/
        $(INSTALL_DATA) ./files/8a11255d14aef6c8 $(1)/etc/opkg/keys/8a11255d14aef6c8