aboutsummaryrefslogtreecommitdiffstats
path: root/package/uci
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-20 12:34:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-20 12:34:17 +0000
commit1ffa647fe15737cc8ba104642eea875dcaac7180 (patch)
tree1d2037785c22f6a178e05b59dc1921b3612ec2a8 /package/uci
parentfd26ece7f142f5622735213a0c3e2e198486c759 (diff)
downloadupstream-1ffa647fe15737cc8ba104642eea875dcaac7180.tar.gz
upstream-1ffa647fe15737cc8ba104642eea875dcaac7180.tar.bz2
upstream-1ffa647fe15737cc8ba104642eea875dcaac7180.zip
fix uci_set_state for empty values
SVN-Revision: 12345
Diffstat (limited to 'package/uci')
-rw-r--r--package/uci/files/lib/config/uci.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/uci/files/lib/config/uci.sh b/package/uci/files/lib/config/uci.sh
index f5d8ddc1f0..38f3097f5b 100644
--- 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"
}