diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-11-28 19:02:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-11-28 19:02:46 +0000 |
commit | 2775144bbf28a8d81b3e9f91148de58ddf06d4a3 (patch) | |
tree | 4b99e0e433774353d65803a9448ed11c0e87d266 /package/base-files | |
parent | 42a9931bd0181912a7e9789d9fd1887665287655 (diff) | |
download | upstream-2775144bbf28a8d81b3e9f91148de58ddf06d4a3.tar.gz upstream-2775144bbf28a8d81b3e9f91148de58ddf06d4a3.tar.bz2 upstream-2775144bbf28a8d81b3e9f91148de58ddf06d4a3.zip |
drop the '0' default in config_get_bool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9618 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/etc/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh index 284ed4c14f..69af187502 100755 --- a/package/base-files/files/etc/functions.sh +++ b/package/base-files/files/etc/functions.sh @@ -129,7 +129,7 @@ config_get_bool() { case "$_tmp" in 1|on|true|enabled) export ${NO_EXPORT:+-n} "$1=1";; 0|off|false|disabled) export ${NO_EXPORT:+-n} "$1=0";; - *) eval "$1=${4:-0}";; + *) eval "$1=$4";; esac } |