Commit 2be97ee7 authored by Ben Hutchings's avatar Ben Hutchings

scripts/local-premount/resume: Check for kernel resume interface earlier

There is no point in looking for the resume device if the kernel
doesn't support resuming from disk.
Signed-off-by: 's avatarBen Hutchings <ben@decadent.org.uk>
parent f3a61b36
......@@ -15,7 +15,7 @@ prereqs)
;;
esac
if [ -z "${resume}" ]; then
if [ -z "${resume}" ] || [ ! -e /sys/power/resume ]; then
exit 0
fi
......@@ -53,8 +53,6 @@ esac
[ ! -e "${resume}" ] && exit 0
[ ! -e /sys/power/resume ] && exit 0
# hardcode path, uswsusp ships an resume binary too
if [ -n "${resume_offset}" ]; then
/bin/resume ${resume} ${resume_offset}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment