mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:30:16 +02:00
[backfire] merge r22251
dnsmasq: initscript: fix bool options handling, bump release number git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22269 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1ad551b0a7
commit
1066e6d8b9
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dnsmasq
|
||||
PKG_VERSION:=2.55
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
||||
|
@ -23,8 +23,8 @@ append_bool() {
|
||||
local option="$2"
|
||||
local value="$3"
|
||||
local _loctmp
|
||||
config_get_bool _loctmp "$section" "$option"
|
||||
[ "$_loctmp" -gt 0 ] && append args "$value"
|
||||
config_get_bool _loctmp "$section" "$option" 0
|
||||
[ $_loctmp -gt 0 ] && append args "$value"
|
||||
}
|
||||
|
||||
append_parm() {
|
||||
@ -274,7 +274,7 @@ dhcp_add() {
|
||||
|
||||
#check for an already active dhcp server on the interface, unless 'force' is set
|
||||
config_get_bool force "$cfg" force 0
|
||||
[ "$force" -gt 0 ] || {
|
||||
[ $force -gt 0 ] || {
|
||||
udhcpc -n -q -s /bin/true -t 1 -i $ifname >&- && return 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user