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 4df8f33ff4be76beb5af4355b307394c5a340715..90098f014fa782c88745f2cd0fcaac2f5ab61ead 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
 }