[packages] btpd: Add default value for bool config options
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23463 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b9b948be14
commit
a97e0f8894
@ -7,7 +7,7 @@ append_bool() {
|
||||
local option="$2"
|
||||
local value="$3"
|
||||
local _loctmp
|
||||
config_get_bool _loctmp "$section" "$option"
|
||||
config_get_bool _loctmp "$section" "$option" 0
|
||||
[ "$_loctmp" -gt 0 ] && append args "$value"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user