summaryrefslogtreecommitdiffstats
path: root/hooks/resume
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/resume')
-rw-r--r--hooks/resume2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/resume b/hooks/resume
index 4af85ea..f410051 100644
--- a/hooks/resume
+++ b/hooks/resume
@@ -16,7 +16,7 @@ run_hook ()
else
suspend2root="/proc/suspend2"
fi
- if [ -d "${suspend2root}" -a "x${resume2}" != "x" ]; then
+ if [ -d "${suspend2root}" -a -n "${resume2}" ]; then
echo ${resume2} > ${suspend2root}/resume2
echo > ${suspend2root}/do_resume
fi