[openwrt/openwrt] odhcpd: set procd expected variable for odhcpd update script

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 23 07:36:30 PDT 2025


noltari pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5a949cb5f961383970fc59deba174109c6180abb

commit 5a949cb5f961383970fc59deba174109c6180abb
Author: Paul Donald <newtwen+github at gmail.com>
AuthorDate: Tue Oct 21 16:54:23 2025 +0200

    odhcpd: set procd expected variable for odhcpd update script
    
    Otherwise odhcpd logs:
    
    ```
    odhcpd[14970]: Sent 113 bytes to xxx%lan at br-lan
    BusyBox v1.37.0 (2025-10-10 09:07:48 UTC) multi-call binary.
    
    Usage: basename FILE [SUFFIX] | -a FILE... | -s SUFFIX FILE...
    
    Strip directory path and SUFFIX from FILE
    
            -a              All arguments are FILEs
            -s SUFFIX       Remove SUFFIX (implies -a)
    odhcpd[14970]: Netlink newneigh xxx on lan
    ```
    
    Apparently procd scripts expect initscript set.
    
    h/t @Alphix for finding this.
    
    Signed-off-by: Paul Donald <newtwen+github at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/20485
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 package/network/services/odhcpd/Makefile            | 2 +-
 package/network/services/odhcpd/files/odhcpd-update | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index 0fc755695f..2c8df3cd19 100644
--- a/package/network/services/odhcpd/Makefile
+++ b/package/network/services/odhcpd/Makefile
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=odhcpd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
diff --git a/package/network/services/odhcpd/files/odhcpd-update b/package/network/services/odhcpd/files/odhcpd-update
index c1814e00b0..e777fcbb07 100755
--- a/package/network/services/odhcpd/files/odhcpd-update
+++ b/package/network/services/odhcpd/files/odhcpd-update
@@ -1,6 +1,8 @@
 #!/bin/sh
 # Make dnsmasq reread hostfile by sending SIGHUP signal
 
+initscript=$0
+
 . /lib/functions/procd.sh
 
 procd_send_signal dnsmasq




More information about the lede-commits mailing list