Browse Source

resume from any suspend partition

If not "noresume" is specified and no explicit "resume=" given, try to resume
from any partition with type "suspend"
master
Harald Hoyer 16 years ago
parent
commit
e2ab42236b
  1. 3
      modules.d/95resume/resume-genrules.sh

3
modules.d/95resume/resume-genrules.sh

@ -5,4 +5,7 @@ if [ -n "$resume" ]; then @@ -5,4 +5,7 @@ if [ -n "$resume" ]; then
printf "SYMLINK==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \
${resume#/dev/}
) >> /etc/udev/rules.d/99-resume.rules
elif ! getarg noresume; then
echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"suspend\", RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\"" \
>> /etc/udev/rules.d/99-resume.rules
fi

Loading…
Cancel
Save