drop the '0' default in config_get_bool
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Nov 2007 19:02:46 +0000 (19:02 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Nov 2007 19:02:46 +0000 (19:02 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9618 3c298f89-4303-0410-b956-a3cf2f4a3e73

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
 }
 
This page took 0.04549 seconds and 4 git commands to generate.