aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorBastian Bittorf <bb@npl.de>2017-04-16 18:21:49 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-04-17 13:10:31 +0200
commit56457dbcb7fa868c4a306405c596138b845de077 (patch)
tree28ccf5dba7b5afff05c48fdc56e59e7f2dcd3310 /package
parent047695a0294fd7046ba45e5490156c2b8e936a81 (diff)
downloadupstream-56457dbcb7fa868c4a306405c596138b845de077.tar.gz
upstream-56457dbcb7fa868c4a306405c596138b845de077.tar.bz2
upstream-56457dbcb7fa868c4a306405c596138b845de077.zip
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 <bb@npl.de>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 83553f19cf..448d3ee9b0 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