initramfs-framework: fix test that filter backup module files
authorMichaël Burtin <michael.burtin@innotis.org>
Tue, 22 Oct 2013 09:45:17 +0000 (11:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Oct 2013 06:14:13 +0000 (07:14 +0100)
Test that filter backup module files (files starting with ~)
was accidentally reversed in e6039e6e3b98d6ab91252a5012d76279b1fac6e8,
this patch restore initial behavior.

(From OE-Core rev: b2eb846ee12989add7a7ca8bbf45f293a3a7e56d)

Signed-off-by: Michaël Burtin <michael.burtin@innotis.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/init

index 20774aa..95fa9fb 100755 (executable)
@@ -103,7 +103,7 @@ mkdir $ROOTFS_DIR
 # Load and run modules
 for m in $MODULES_DIR/*; do
        # Skip backup files
-       if [ "`echo $m | sed -e 's/\~$//'`" = "$m" ]; then
+       if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
                continue
        fi