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 284ed4c14fa79c8228ce69ef514d4b4e93beb10a..69af187502d8fe2cd13a8dc83acdd39404310a6b 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
 }