[openwrt/openwrt] dnsmasq: Fix wrong format for --dhcp-boot option

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 26 12:24:40 PST 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/1d456c5e7aa27a7501ad03fef3a70520bd22c206

commit 1d456c5e7aa27a7501ad03fef3a70520bd22c206
Author: Julius Lehmann <lehmanju at devpi.de>
AuthorDate: Thu Feb 22 18:01:04 2024 +0100

    dnsmasq: Fix wrong format for --dhcp-boot option
    
    dnsmasq --dhcp-boot option uses 'tag' instead of 'net' to specify tags
    
    Signed-off-by: Julius Lehmann <lehmanju at devpi.de>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index b43abdb8f7..138a913f87 100755
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -502,7 +502,7 @@ dhcp_boot_add() {
 
 	[ -n "$serveraddress" ] && [ ! -n "$servername" ] && return 0
 
-	xappend "--dhcp-boot=${networkid:+net:$networkid,}${filename}${servername:+,$servername}${serveraddress:+,$serveraddress}"
+	xappend "--dhcp-boot=${networkid:+tag:$networkid,}${filename}${servername:+,$servername}${serveraddress:+,$serveraddress}"
 
 	config_get_bool force "$cfg" force 0
 




More information about the lede-commits mailing list