95resume: avoid possible symbolic link creation error on bootup

Avoid symbolic link creation error.
master
Guido Trentalancia 2016-04-15 10:38:04 +02:00 committed by Harald Hoyer
parent 2db14045c1
commit f3f019d947
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ if ! getarg noresume; then
printf -- '%s\n' ' RUN+="/sbin/initqueue --finished --unique --name 00resume echo %M:%m > /sys/power/resume"'
} >> /etc/udev/rules.d/99-resume.rules

printf '[ -e "%s" ] && { ln -s "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
printf '[ -e "%s" ] && { ln -fs "%s" /dev/resume 2> /dev/null; rm -f -- "$job" "%s/initqueue/timeout/resume.sh"; }\n' \
"$resume" "$resume" "$hookdir" >> $hookdir/initqueue/settled/resume.sh

{