You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
670 B
15 lines
670 B
if [ -n "$resume" ]; then |
|
{ |
|
printf "KERNEL==\"%s\", RUN+=\"/bin/sh -c 'echo %%M:%%m > /sys/power/resume'\"\n" \ |
|
${resume#/dev/}; |
|
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'\""; |
|
echo "SUBSYSTEM==\"block\", ACTION==\"add\", ENV{ID_FS_TYPE}==\"swsuspend\"," \ |
|
" RUN+=\"/bin/sh -c 'echo %M:%m > /sys/power/resume'\""; |
|
} >> /etc/udev/rules.d/99-resume.rules |
|
fi
|
|
|