local VALUE
strtok "$1" PACKAGE . CONFIG = VALUE
- [ $? -ne 3 ] && {
+ [ $? -ne 3 -a $? -ne 2 ] && {
uci_usage set
exit 1
}
do_commit() {
local PACKAGE="$1"
for package in ${PACKAGE:-$(cd /tmp/.uci; ls)}; do
+ [ lock = "${package##*.}" ] && continue # ignore .lock files
uci_commit "$package"
done
}
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"