projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid a race condition that might lead to dnsmasq reading an empty resolv.conf (...
[openwrt-10.03/.git]
/
package
/
base-files
/
files
/
bin
/
uci
diff --git
a/package/base-files/files/bin/uci
b/package/base-files/files/bin/uci
index 4df8f33ff4be76beb5af4355b307394c5a340715..f89fe82b7eb4268687a3430c3a6f0d2a92b86e60 100755
(executable)
--- a/
package/base-files/files/bin/uci
+++ b/
package/base-files/files/bin/uci
@@
-86,7
+86,7
@@
do_remove() {
do_commit() {
local PACKAGE="$1"
for package in ${PACKAGE:-$(cd /tmp/.uci; ls)}; do
do_commit() {
local PACKAGE="$1"
for package in ${PACKAGE:-$(cd /tmp/.uci; ls)}; do
- [
"${package##.*}" != "$package
" ] && continue # ignore .lock files
+ [
lock = "${package##*.}
" ] && continue # ignore .lock files
uci_commit "$package"
done
}
uci_commit "$package"
done
}
@@
-106,7
+106,7
@@
do_show() {
SECTION=""
config_cb() {
SECTION=""
config_cb() {
- if [ -z "$CONFIG" -o
"$CONFIG" =
"$2" ]; then
+ if [ -z "$CONFIG" -o
."$CONFIG" = .
"$2" ]; then
append SECTION "$2"
option_cb() {
append "${CONFIG_SECTION}_VARS" "$1"
append SECTION "$2"
option_cb() {
append "${CONFIG_SECTION}_VARS" "$1"