[openwrt/openwrt] odhcpd: number UCI defaults script

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 21 14:59:52 EDT 2020


dedeckeh pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/ec80139629f1087d67f5956caf92b2320c5b54e9

commit ec80139629f1087d67f5956caf92b2320c5b54e9
Author: Stijn Segers <foss at volatilesystems.org>
AuthorDate: Sun Sep 20 23:03:32 2020 +0200

    odhcpd: number UCI defaults script
    
    UCI defaults scripts are supposed to be numbered, but odhcpd's lacked numbering, which
    turned out to mess up my custom scripts numbered 9[0-9]_*. The idea is to have high number
    (custom) scripts executed last. Jow confirmed numbering is the default case, not the
    exception (thanks).
    
    Signed-off-by: Stijn Segers <foss at volatilesystems.org>
---
 package/network/services/odhcpd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index d3e131caec..62dd53774d 100644
--- a/package/network/services/odhcpd/Makefile
+++ b/package/network/services/odhcpd/Makefile
@@ -100,7 +100,7 @@ define Package/odhcpd/install
 	$(INSTALL_DIR) $(1)/etc/init.d
 	$(INSTALL_BIN) ./files/odhcpd.init $(1)/etc/init.d/odhcpd
 	$(INSTALL_DIR) $(1)/etc/uci-defaults
-	$(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults
+	$(INSTALL_BIN) ./files/odhcpd.defaults $(1)/etc/uci-defaults/15_odhcpd
 endef
 
 Package/odhcpd-ipv6only/install = $(Package/odhcpd/install)



More information about the lede-commits mailing list