drop the '0' default in config_get_bool
authorFelix Fietkau <nbd@openwrt.org>
Wed, 28 Nov 2007 19:02:46 +0000 (19:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 28 Nov 2007 19:02:46 +0000 (19:02 +0000)
SVN-Revision: 9618

package/base-files/files/etc/functions.sh

index 284ed4c..69af187 100755 (executable)
@@ -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
 }