X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7655f63af9be876ff16eb3644de32eab14721817..ae2077bf16daacaf4ff47bd474969f42899003f1:/package/uci/files/lib/config/uci.sh?ds=sidebyside 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" }