projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dnsmasq: initscript: fix bool options handling, bump release number
[librecmc/librecmc.git]
/
package
/
dnsmasq
/
files
/
dnsmasq.init
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 49291a5c8ab7b50f063b78f171345dae8bcdff05..e2f35e8aad0aff4e33fbd1c624b36dfe7cce647b 100644
(file)
--- 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
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() {
}
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
#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
}
udhcpc -n -q -s /bin/true -t 1 -i $ifname >&- && return 0
}