projects
/
openwrt
/
staging
/
pepe2k.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd1292
)
fix CONFIG_FILENAME in uci_commit()
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 14 Dec 2006 17:29:51 +0000
(17:29 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 14 Dec 2006 17:29:51 +0000
(17:29 +0000)
SVN-Revision: 5791
package/base-files/files/lib/config/uci.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/config/uci.sh
b/package/base-files/files/lib/config/uci.sh
index bd1322252e5df36120619e20a87c7a4ae5eef80c..12795d813ff1b608128f6d749d193e2eacc6e2d7 100755
(executable)
--- a/
package/base-files/files/lib/config/uci.sh
+++ b/
package/base-files/files/lib/config/uci.sh
@@
-127,7
+127,8
@@
uci_commit() {
return 0
}
- config_load "$PACKAGE" || CONFIG_FILENAME="$ROOT/etc/config/$PACKAGE_BASE"
+ config_load "$PACKAGE"
+ CONFIG_FILENAME="${CONFIG_FILENAME:-$ROOT/etc/config/$PACKAGE_BASE}"
uci_do_update "$CONFIG_FILENAME" "$updatestr" > "/tmp/.uci/$PACKAGE_BASE.new" && {
mv -f "/tmp/.uci/$PACKAGE_BASE.new" "$CONFIG_FILENAME" && \
rm -f "/tmp/.uci/$PACKAGE_BASE"