summaryrefslogtreecommitdiffstats
path: root/hooks/resume
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-06-07 14:47:52 +0200
committerThomas Bächler <thomas@archlinux.org>2009-06-07 14:47:52 +0200
commitce6e83fe333622bc306cfb3c9b5822d8f6d9f213 (patch)
tree3fd70672e0ce2e9674e40d68c013d49ee26c96c6 /hooks/resume
parent50db40944476af56188d3d9060d0c826e7a75af5 (diff)
downloadmkinitcpio-ce6e83fe333622bc306cfb3c9b5822d8f6d9f213.tar.gz
mkinitcpio-ce6e83fe333622bc306cfb3c9b5822d8f6d9f213.tar.xz
Always use rootdelay when polling a device, set it earlier in the init file0.5.25
Diffstat (limited to 'hooks/resume')
-rw-r--r--hooks/resume2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/resume b/hooks/resume
index 5e4d51b..0632fed 100644
--- a/hooks/resume
+++ b/hooks/resume
@@ -3,7 +3,7 @@ run_hook ()
{
fmtdevice () { echo "${1}:${2}"; }
- if [ -n "${resume}" ] && poll_device "${resume}"; then
+ if [ -n "${resume}" ] && poll_device "${resume}" ${rootdelay}; then
# Try resuming with tuxonice
tuxoniceroot="/sys/power/tuxonice"
if [ -d "${tuxoniceroot}" ]; then