On 06/09/2010 10:38 AM, Amadeusz Żołnowski wrote:
---
modules.d/95uswsusp/check | 2 +-
modules.d/95uswsusp/install | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules.d/95uswsusp/check b/modules.d/95uswsusp/check
index ba95479..4b3f8fb 100755
--- a/modules.d/95uswsusp/check
+++ b/modules.d/95uswsusp/check
@@ -1,2 +1,2 @@
#!/bin/sh
-[ -x /usr/sbin/resume ]
+[ -x /usr/sbin/resume ] || [ -x /usr/lib/suspend/resume ]
diff --git a/modules.d/95uswsusp/install b/modules.d/95uswsusp/install
index f8afe3a..6830763 100755
--- a/modules.d/95uswsusp/install
+++ b/modules.d/95uswsusp/install
@@ -1,5 +1,10 @@
#!/bin/bash
-inst /usr/sbin/resume
+for bin in /usr/sbin/resume /usr/lib/suspend/resume
+do
+ [ -x "${bin}" ]&& break
+done
+
+inst "${bin}" /usr/sbin/resume
[ -f /etc/suspend.conf ]&& inst /etc/suspend.conf
inst_hook cmdline 10 "$moddir/parse-uswsusp.sh"
pushed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html