btpd: Add default value for bool config options
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Fri, 15 Oct 2010 21:39:30 +0000 (21:39 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Fri, 15 Oct 2010 21:39:30 +0000 (21:39 +0000)
SVN-Revision: 23463

net/btpd/files/btpd.init

index f06be5181de4fd52e5cb8629287e34ecba547f09..8f266c62bbfc9af04a2ff26363fc2e6afb46ab8c 100644 (file)
@@ -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"
 }