From 8dc03d7740ec10c80ce91f2dd3cd8a267c69f6b5 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 28 Nov 2007 19:02:46 +0000 Subject: [PATCH] drop the '0' default in config_get_bool git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9618 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }