mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
keep uci_set from saving things that have not changed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7259 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2a756cdce6
commit
330a1018f6
@ -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…
x
Reference in New Issue
Block a user