summaryrefslogtreecommitdiff
path: root/modules.d/95resume
diff options
context:
space:
mode:
authorDavid Dillow <dave@thedillows.org>2009-06-01 19:46:43 -0400
committerDavid Dillow <dave@thedillows.org>2009-06-01 19:46:43 -0400
commit7132e6a34677691d428967462bbe7134fb2cdf52 (patch)
tree9529dde5a7c02d970762f4cd58db371b353a2df6 /modules.d/95resume
parent92997caf35387470d6674529fecf63e28e767ffc (diff)
downloaddracut-7132e6a34677691d428967462bbe7134fb2cdf52.tar.gz
dracut-7132e6a34677691d428967462bbe7134fb2cdf52.tar.bz2
dracut-7132e6a34677691d428967462bbe7134fb2cdf52.zip
Remove dependency on /bin/echo
Actually cut the last dependency on //bin/echo for resume.
Diffstat (limited to 'modules.d/95resume')
-rwxr-xr-xmodules.d/95resume/resume-genrules.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh
index 7c957150..13b91a54 100755
--- a/modules.d/95resume/resume-genrules.sh
+++ b/modules.d/95resume/resume-genrules.sh
@@ -1,8 +1,8 @@
if [ -n "$resume" ]; then
(
- printf 'KERNEL=="%s", RUN+="/bin/echo %%M:%%m > /sys/power/resume"\n' \
+ printf "KERNEL==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
${resume#/dev/}
- printf 'SYMLINK=="%s", RUN+="/bin/echo %%M:%%m > /sys/power/resume"\n' \
+ printf "SYMLINK==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
${resume#/dev/}
) >> /etc/udev/rules.d/99-resume.rules
fi