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>
master
Bastian Bittorf 7 years ago committed by Hans Dedecker
parent 047695a029
commit 56457dbcb7
  1. 2
      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

Loading…
Cancel
Save