projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf0871
)
drop the '0' default in config_get_bool
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 28 Nov 2007 19:02:46 +0000
(19:02 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/package/base-files/files/etc/functions.sh
b/package/base-files/files/etc/functions.sh
index 284ed4c14fa79c8228ce69ef514d4b4e93beb10a..69af187502d8fe2cd13a8dc83acdd39404310a6b 100755
(executable)
--- 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
}