diff options
author | Luka Perkov <luka@openwrt.org> | 2014-06-29 23:05:05 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2014-06-29 23:05:05 +0000 |
commit | ba967cd842e5d7425d6cc4e7e1584b7f000a5d86 (patch) | |
tree | 886d50adbc870c3ec028098d482109c1cc8f385e /package/base-files | |
parent | f9ab4e48c1795e24593279b4471e93f29a56d9d1 (diff) | |
download | master-187ad058-ba967cd842e5d7425d6cc4e7e1584b7f000a5d86.tar.gz master-187ad058-ba967cd842e5d7425d6cc4e7e1584b7f000a5d86.tar.bz2 master-187ad058-ba967cd842e5d7425d6cc4e7e1584b7f000a5d86.zip |
base-files: define yes/no as valid boolean options
ubox validate_data defines yes/no as valid boolean options, do the same in
config_get_bool too.
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41405 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index e55cad0b20..0d4b2a33db 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -102,8 +102,8 @@ config_get_bool() { local _tmp config_get _tmp "$2" "$3" "$4" case "$_tmp" in - 1|on|true|enabled) _tmp=1;; - 0|off|false|disabled) _tmp=0;; + 1|on|true|yes|enabled) _tmp=1;; + 0|off|false|no|disabled) _tmp=0;; *) _tmp="$4";; esac export ${NO_EXPORT:+-n} "$1=$_tmp" |