summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-28 19:02:46 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-28 19:02:46 +0000
commit8dc03d7740ec10c80ce91f2dd3cd8a267c69f6b5 (patch)
tree4b99e0e433774353d65803a9448ed11c0e87d266 /package/base-files/files/etc
parent8af64dd6f7b390919d8b3707b7d4ed9d2b9175ff (diff)
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/files/etc')
-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 284ed4c14..69af18750 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
}