From: Felix Fietkau Date: Wed, 28 Nov 2007 19:02:46 +0000 (+0000) Subject: drop the '0' default in config_get_bool X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8977c6c20aa145e49cfecad304b8eb4692b3d087;p=openwrt%2Fstaging%2Fstintel.git drop the '0' default in config_get_bool SVN-Revision: 9618 --- 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 }