Browse Source

resume: do not include in hostonly, if no swap is present

master
Harald Hoyer 12 years ago
parent
commit
34b56de12a
  1. 12
      modules.d/95resume/module-setup.sh

12
modules.d/95resume/module-setup.sh

@ -2,6 +2,18 @@ @@ -2,6 +2,18 @@
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

check() {
# No point trying to support resume, if no swap partition exist
[[ $hostonly ]] || [[ $mount_needs ]] && {
for fs in "${host_fs_types[@]}"; do
[[ $fs = swap ]] && return 0
done
return 255
}

return 0
}

install() {
local _bin
# Optional uswsusp support

Loading…
Cancel
Save