fix uci_set_state for empty values

SVN-Revision: 12345
lede-17.01
Felix Fietkau 2008-08-20 12:34:17 +00:00
parent fd26ece7f1
commit 1ffa647fe1
1 changed files with 1 additions and 1 deletions

View File

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