aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2010-07-17 13:36:13 +0000
committerNicolas Thill <nico@openwrt.org>2010-07-17 13:36:13 +0000
commit3770e0e7facafd3c2f9d0a73b5e1b93c97affc97 (patch)
tree3ab429e713c16a253f46b2d8d880d304f5267241 /package/dnsmasq/files
parent6a396dd53de4b5cbb7927a066a0b438c421bd9dc (diff)
downloadupstream-3770e0e7facafd3c2f9d0a73b5e1b93c97affc97.tar.gz
upstream-3770e0e7facafd3c2f9d0a73b5e1b93c97affc97.tar.bz2
upstream-3770e0e7facafd3c2f9d0a73b5e1b93c97affc97.zip
dnsmasq: initscript: fix bool options handling, bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22251 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r--package/dnsmasq/files/dnsmasq.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 49291a5c8a..e2f35e8aad 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -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
}