summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-28 19:02:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-28 19:02:46 +0000
commit8977c6c20aa145e49cfecad304b8eb4692b3d087 (patch)
treeee5d41cb45c2afabdd7a89fa078e6b60678083ce /package
parentbbf087176a7af29ead2cd655918701aa56c1c7f2 (diff)
downloadmtk-20170518-8977c6c20aa145e49cfecad304b8eb4692b3d087.zip
mtk-20170518-8977c6c20aa145e49cfecad304b8eb4692b3d087.tar.gz
mtk-20170518-8977c6c20aa145e49cfecad304b8eb4692b3d087.tar.bz2
drop the '0' default in config_get_bool
SVN-Revision: 9618
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/etc/functions.sh2
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 284ed4c..69af187 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
}