aboutsummaryrefslogtreecommitdiffstats
path: root/package/uci/files
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
commit90bf1295c10ddf907159a1919995872d5a0b24b9 (patch)
tree643fc1fccc8051bfa0e6761ae63fea078ab39cff /package/uci/files
parentda1b42031e8078456d3252865bfe0c5408095c54 (diff)
downloadupstream-90bf1295c10ddf907159a1919995872d5a0b24b9.tar.gz
upstream-90bf1295c10ddf907159a1919995872d5a0b24b9.tar.bz2
upstream-90bf1295c10ddf907159a1919995872d5a0b24b9.zip
fix uci_set_state for empty values
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12345 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uci/files')
-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"
}