|
Harald Hoyer |
60a1f9 |
From 24450a5ab74db0f4ecaeee5dedaa8aff6e04ca5c Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
60a1f9 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
60a1f9 |
Date: Fri, 20 Jul 2012 14:44:12 +0200
|
|
Harald Hoyer |
60a1f9 |
Subject: [PATCH] resume: move resume in the initqueue/finished hook
|
|
Harald Hoyer |
60a1f9 |
|
|
Harald Hoyer |
60a1f9 |
this ensures, that resume is called as soon as possible
|
|
Harald Hoyer |
60a1f9 |
---
|
|
Harald Hoyer |
60a1f9 |
modules.d/95resume/resume-genrules.sh | 12 ++++++------
|
|
Harald Hoyer |
60a1f9 |
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
Harald Hoyer |
60a1f9 |
|
|
Harald Hoyer |
60a1f9 |
diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh
|
|
Harald Hoyer |
60a1f9 |
index 34511d7..f16df8c 100755
|
|
Harald Hoyer |
60a1f9 |
--- a/modules.d/95resume/resume-genrules.sh
|
|
Harald Hoyer |
60a1f9 |
+++ b/modules.d/95resume/resume-genrules.sh
|
|
Harald Hoyer |
60a1f9 |
@@ -21,14 +21,14 @@ if [ -n "$resume" ]; then
|
|
Harald Hoyer |
60a1f9 |
|
|
Harald Hoyer |
60a1f9 |
{
|
|
Harald Hoyer |
60a1f9 |
if [ -x /usr/sbin/resume ]; then
|
|
Harald Hoyer |
60a1f9 |
- printf "KERNEL==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue /usr/sbin/resume %s '%s'\"\n" \
|
|
Harald Hoyer |
60a1f9 |
+ printf "KERNEL==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue --finished --unique --name 00resume /usr/sbin/resume %s \'%s\'\"\n" \
|
|
Harald Hoyer |
60a1f9 |
${resume#/dev/} "$a_splash" "$resume";
|
|
Harald Hoyer |
60a1f9 |
- printf "SYMLINK==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue /usr/sbin/resume %s '%s'\"\n" \
|
|
Harald Hoyer |
60a1f9 |
+ printf "SYMLINK==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue --finished --unique --name 00resume /usr/sbin/resume %s \'%s\'\"\n" \
|
|
Harald Hoyer |
60a1f9 |
${resume#/dev/} "$a_splash" "$resume";
|
|
Harald Hoyer |
60a1f9 |
fi
|
|
Harald Hoyer |
60a1f9 |
- printf "KERNEL==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue /bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
|
|
Harald Hoyer |
60a1f9 |
+ printf "KERNEL==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue --finished --unique --name 00resume echo %%M:%%m > /sys/power/resume\"\n" \
|
|
Harald Hoyer |
60a1f9 |
${resume#/dev/};
|
|
Harald Hoyer |
60a1f9 |
- printf "SYMLINK==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue /bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
|
|
Harald Hoyer |
60a1f9 |
+ printf "SYMLINK==\"%s\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue --finished --unique --name 00resume echo %%M:%%m > /sys/power/resume\"\n" \
|
|
Harald Hoyer |
60a1f9 |
${resume#/dev/};
|
|
Harald Hoyer |
60a1f9 |
} >> /etc/udev/rules.d/99-resume.rules
|
|
Harald Hoyer |
60a1f9 |
|
|
Harald Hoyer |
60a1f9 |
@@ -43,9 +43,9 @@ if [ -n "$resume" ]; then
|
|
Harald Hoyer |
60a1f9 |
elif ! getarg noresume; then
|
|
Harald Hoyer |
60a1f9 |
{
|
|
Harald Hoyer |
60a1f9 |
if [ -x /usr/sbin/resume ]; then
|
|
Harald Hoyer |
60a1f9 |
- printf "SUBSYSTEM==\"block\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue /usr/sbin/resume %s '\$tempnode'\"\n" "$a_splash"
|
|
Harald Hoyer |
60a1f9 |
+ printf "SUBSYSTEM==\"block\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\", RUN+=\"/sbin/initqueue --finished --unique --name 00resume /usr/sbin/resume %s \$tempnode\"\n" "$a_splash"
|
|
Harald Hoyer |
60a1f9 |
fi
|
|
Harald Hoyer |
60a1f9 |
echo "SUBSYSTEM==\"block\", ACTION==\"add|change\", ENV{ID_FS_TYPE}==\"suspend|swsuspend|swsupend\"," \
|
|
Harald Hoyer |
60a1f9 |
- " RUN+=\"/sbin/initqueue /bin/sh -c 'echo %M:%m > /sys/power/resume'\"";
|
|
Harald Hoyer |
60a1f9 |
+ " RUN+=\"/sbin/initqueue --finished --unique --name 00resume echo %M:%m > /sys/power/resume\"";
|
|
Harald Hoyer |
60a1f9 |
} >> /etc/udev/rules.d/99-resume.rules
|
|
Harald Hoyer |
60a1f9 |
fi
|