diff options
author | Nicolas Thill <nico@openwrt.org> | 2010-07-17 13:36:13 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2010-07-17 13:36:13 +0000 |
commit | 1d7a6ebc79e71dbc9085efab8205134bc769159b (patch) | |
tree | 3c5f07d5d64407a599065e41ba02fc975bed36ad /package/dnsmasq/files | |
parent | 628252073e5673a03643687e16ce887720e49033 (diff) | |
download | upstream-1d7a6ebc79e71dbc9085efab8205134bc769159b.tar.gz upstream-1d7a6ebc79e71dbc9085efab8205134bc769159b.tar.bz2 upstream-1d7a6ebc79e71dbc9085efab8205134bc769159b.zip |
dnsmasq: initscript: fix bool options handling, bump release number
SVN-Revision: 22251
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 6 |
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 } |