From 56457dbcb7fa868c4a306405c596138b845de077 Mon Sep 17 00:00:00 2001 From: Bastian Bittorf Date: Sun, 16 Apr 2017 18:21:49 +0200 Subject: [PATCH] dnsmasq: fix uninitialized varname in init-script minor/cosmetic: fixes the following misleading message: root@box:~ /etc/init.d/dnsmasq restart sh: out of range Signed-off-by: Bastian Bittorf --- 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 83553f19cffe..448d3ee9b0da 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 -- 2.30.2