Author: hauke Date: 2016-04-17 14:52:54 +0200 (Sun, 17 Apr 2016) New Revision: 49187
Modified: trunk/package/network/services/dnsmasq/files/dnsmasq.init Log: dnsmasq: Add enable parameter in the UCI DHCP host section Parameter allows to enable/disable static leases; by default the value is 1 to keep backwards compatibility Signed-off-by: Hans Dedecker <[email protected]> Signed-off-by: Hauke Mehrtens <[email protected]> Modified: trunk/package/network/services/dnsmasq/files/dnsmasq.init =================================================================== --- trunk/package/network/services/dnsmasq/files/dnsmasq.init 2016-04-17 12:52:37 UTC (rev 49186) +++ trunk/package/network/services/dnsmasq/files/dnsmasq.init 2016-04-17 12:52:54 UTC (rev 49187) @@ -316,6 +316,9 @@ config_get networkid "$cfg" networkid [ -n "$networkid" ] && dhcp_option_add "$cfg" "$networkid" "$force" + config_get_bool enable "$cfg" enable 1 + [ "$enable" = "0" ] && return 0 + config_get name "$cfg" name config_get ip "$cfg" ip [ -n "$ip" -o -n "$name" ] || return 0 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
