local CONFIG="$2"
local OPTION="$3"
- /bin/uci -P /var/state revert "$PACKAGE${CONFIG:+.$CONFIG}${OPTION:+.$OPTION}"
+ /sbin/uci -P /var/state revert "$PACKAGE${CONFIG:+.$CONFIG}${OPTION:+.$OPTION}"
}
uci_set_state() {
local OPTION="$3"
local VALUE="$4"
- /sbin/uci set "$PACKAGE.$CONFIG.$OPTION=$TYPE"
+ /sbin/uci set "$PACKAGE.$CONFIG.$OPTION=$VALUE"
}
uci_add() {