projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uci: add missing 'option' support to uci_rename()
[openwrt/.git]
/
package
/
system
/
uci
/
files
/
lib
/
config
/
uci.sh
diff --git
a/package/system/uci/files/lib/config/uci.sh
b/package/system/uci/files/lib/config/uci.sh
index 50891a64e4b444500ef82c0803f22a643752759d..78ec277669977d5c3328be16af7c455c3aae44d3 100644
(file)
--- a/
package/system/uci/files/lib/config/uci.sh
+++ b/
package/system/uci/files/lib/config/uci.sh
@@
-118,9
+118,10
@@
uci_add() {
uci_rename() {
local PACKAGE="$1"
local CONFIG="$2"
uci_rename() {
local PACKAGE="$1"
local CONFIG="$2"
- local VALUE="$3"
+ local OPTION="$3"
+ local VALUE="$4"
- /sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} rename "$PACKAGE.$CONFIG
=$VALUE
"
+ /sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} rename "$PACKAGE.$CONFIG
${VALUE:+.$OPTION}=${VALUE:-$OPTION}
"
}
uci_remove() {
}
uci_remove() {