diff options
author | David Dillow <dave@thedillows.org> | 2009-06-01 19:46:43 -0400 |
---|---|---|
committer | David Dillow <dave@thedillows.org> | 2009-06-01 19:46:43 -0400 |
commit | 7132e6a34677691d428967462bbe7134fb2cdf52 (patch) | |
tree | 9529dde5a7c02d970762f4cd58db371b353a2df6 /modules.d/95resume | |
parent | 92997caf35387470d6674529fecf63e28e767ffc (diff) | |
download | dracut-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-x | modules.d/95resume/resume-genrules.sh | 4 |
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 |