fix uci commit
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 13:42:55 +0000 (13:42 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 13:42:55 +0000 (13:42 +0000)
SVN-Revision: 6665

package/base-files/files/bin/uci

index 4df8f33..90098f0 100755 (executable)
@@ -86,7 +86,7 @@ do_remove() {
 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
 }