1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 23:16:16 +02:00

fix uci_set_state for empty values

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12345 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-08-20 12:34:17 +00:00
parent 8a1e72be0a
commit fe53cab771

View File

@ -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"
}