projects
/
openwrt
/
staging
/
kaloz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd26ece
)
fix uci_set_state for empty values
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Aug 2008 12:34:17 +0000
(12:34 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Aug 2008 12:34:17 +0000
(12:34 +0000)
SVN-Revision: 12345
package/uci/files/lib/config/uci.sh
patch
|
blob
|
history
diff --git
a/package/uci/files/lib/config/uci.sh
b/package/uci/files/lib/config/uci.sh
index f5d8ddc1f02f01e9f8ab12c797575e20448749cd..38f3097f5b2444f626d73c8dca43217e64eea48f 100644
(file)
--- a/
package/uci/files/lib/config/uci.sh
+++ b/
package/uci/files/lib/config/uci.sh
@@
-60,7
+60,7
@@
uci_set_state() {
local OPTION="$3"
local VALUE="$4"
- [
-z "$VALUE" ] &&
return 0
+ [
"$#" = 4 ] ||
return 0
/sbin/uci -P /var/state set "$PACKAGE.$CONFIG${OPTION:+.$OPTION}=$VALUE"
}