]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
parse resume= param value into $resume, not just hardcode "yes"
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Jan 2012 17:07:24 +0000 (17:07 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Jan 2012 17:07:24 +0000 (17:07 +0000)
svn-id: @12457

mod-suspend.sh

index ffc86c6ed80b3bfe6041430f0c41625ca9895fac..c15f4c703d4c8e1754a3a8d74c3af79a29b51df5 100644 (file)
@@ -62,7 +62,7 @@ initrd_gen_suspend() {
        resume=no
        for arg in $CMDLINE; do
                if [ "${arg##resume=}" != "${arg}" ]; then
-                       resume=yes
+                       resume=${arg##resume=}
                fi
        done
        if [ "$resume" = "yes" ]; then
This page took 0.046689 seconds and 4 git commands to generate.