X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6762e5d4cc62a85ee750419aec83d8b64ab59a63..21f4cf973f2bc72fe16e0bc5f5cba33c04a1b90e:/package/base-files/files/etc/functions.sh diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh index a613e1190..284ed4c14 100755 --- a/package/base-files/files/etc/functions.sh +++ b/package/base-files/files/etc/functions.sh @@ -127,8 +127,8 @@ config_get_bool() { local _tmp config_get "_tmp" "$2" "$3" case "$_tmp" in - 1|on|enabled) export ${NO_EXPORT:+-n} "$1=1";; - 0|off|disabled) export ${NO_EXPORT:+-n} "$1=0";; + 1|on|true|enabled) export ${NO_EXPORT:+-n} "$1=1";; + 0|off|false|disabled) export ${NO_EXPORT:+-n} "$1=0";; *) eval "$1=${4:-0}";; esac }