mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
drop the '0' default in config_get_bool
SVN-Revision: 9618
This commit is contained in:
parent
bbf087176a
commit
8977c6c20a
@ -129,7 +129,7 @@ config_get_bool() {
|
|||||||
case "$_tmp" in
|
case "$_tmp" in
|
||||||
1|on|true|enabled) export ${NO_EXPORT:+-n} "$1=1";;
|
1|on|true|enabled) export ${NO_EXPORT:+-n} "$1=1";;
|
||||||
0|off|false|disabled) export ${NO_EXPORT:+-n} "$1=0";;
|
0|off|false|disabled) export ${NO_EXPORT:+-n} "$1=0";;
|
||||||
*) eval "$1=${4:-0}";;
|
*) eval "$1=$4";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user