From 7132e6a34677691d428967462bbe7134fb2cdf52 Mon Sep 17 00:00:00 2001 From: David Dillow Date: Mon, 1 Jun 2009 19:46:43 -0400 Subject: [PATCH] Remove dependency on /bin/echo Actually cut the last dependency on //bin/echo for resume. --- modules.d/95resume/resume-genrules.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh index 7c95715..13b91a5 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 -- 2.7.4