[source] dnsmasq: fix uninitialized varname in init-script

LEDE Commits lede-commits at lists.infradead.org
Mon Apr 17 04:10:37 PDT 2017


dedeckeh pushed a commit to source.git, branch master:
https://git.lede-project.org/56457dbcb7fa868c4a306405c596138b845de077

commit 56457dbcb7fa868c4a306405c596138b845de077
Author: Bastian Bittorf <bb at npl.de>
AuthorDate: Sun Apr 16 18:21:49 2017 +0200

    dnsmasq: fix uninitialized varname in init-script
    
    minor/cosmetic: fixes the following misleading message:
    
    root at box:~ /etc/init.d/dnsmasq restart
    sh: out of range
    
    Signed-off-by: Bastian Bittorf <bb at npl.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 83553f1..448d3ee 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -698,7 +698,7 @@ dnsmasq_start()
 
 	if [ -x /usr/sbin/odhcpd -a -x /etc/init.d/odhcpd ] ; then
 		local odhcpd_is_main odhcpd_is_enabled
-		config_get odhcpd_is_main odhcpd maindhcp
+		config_get odhcpd_is_main odhcpd maindhcp 0
 		/etc/init.d/odhcpd enabled && odhcpd_is_enabled=1 || odhcpd_is_enabled=0
 
 



More information about the lede-commits mailing list