[packages] tinyproxy: cope with empty flag options
git-svn-id: svn://svn.openwrt.org/openwrt/packages@24049 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ff71c9fff0
commit
a7b1f72f6d
@ -113,7 +113,7 @@ proxy_flag() {
|
||||
local TRUE="${3:-On}"
|
||||
local FALSE="${4:-Off}"
|
||||
|
||||
config_get_bool _value "$SECTION" "$OPTION"
|
||||
config_get_bool _value "$SECTION" "$OPTION" 0
|
||||
[ "$_value" -eq "1" ] && _value="$TRUE" || _value="$FALSE"
|
||||
echo "$OPTION $_value"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user