From fe53cab771604b701cb00d6ee122653bac1c8544 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 20 Aug 2008 12:34:17 +0000 Subject: fix uci_set_state for empty values git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12345 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/uci/files/lib/config/uci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package') diff --git a/package/uci/files/lib/config/uci.sh b/package/uci/files/lib/config/uci.sh index f5d8ddc1f..38f3097f5 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" } -- cgit v1.2.3