keep uci_set from saving things that have not changed
SVN-Revision: 7259
This commit is contained in:
parent
8693233b73
commit
ff111c2511
1 changed files with 5 additions and 2 deletions
|
@ -76,8 +76,11 @@ uci_set() {
|
|||
|
||||
( # spawn a subshell so you don't mess up the current environment
|
||||
uci_load "$PACKAGE"
|
||||
config_get type "$CONFIG" TYPE
|
||||
[ -z "$type" ]
|
||||
config_get OLDVAL "$CONFIG" "$OPTION"
|
||||
if [ "$OLDVAL" != "$VALUE" ]; then
|
||||
config_get type "$CONFIG" TYPE
|
||||
[ -z "$type" ]
|
||||
fi
|
||||
) || uci_add_update "$PACKAGE" "config_set '$CONFIG' '$OPTION' '$VALUE'"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue