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>
This commit is contained in:
Bastian Bittorf 2017-04-16 18:21:49 +02:00 committed by Hans Dedecker
parent 047695a029
commit 56457dbcb7
1 changed files with 1 additions and 1 deletions

View File

@ -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