mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03: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:
@@ -60,7 +60,7 @@ uci_set_state() {
|
|||||||
local OPTION="$3"
|
local OPTION="$3"
|
||||||
local VALUE="$4"
|
local VALUE="$4"
|
||||||
|
|
||||||
[ -z "$VALUE" ] && return 0
|
[ "$#" = 4 ] || return 0
|
||||||
/sbin/uci -P /var/state set "$PACKAGE.$CONFIG${OPTION:+.$OPTION}=$VALUE"
|
/sbin/uci -P /var/state set "$PACKAGE.$CONFIG${OPTION:+.$OPTION}=$VALUE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user