It does not seem that hibernate does this already: on suspend,
depending on the suspend method, check whether /proc/cmdline or
/etc/lilo.conf or /boot/grub/menu.lst have the resume/resume2
parameters. Unless it's obvious that they do, require --force.
- if /proc/cmdline has it, assume things will be ok.
- if not
- figure out default lilo entry, and scan it
- figure out default grub entry, and scan it
Please do not send copies of list mail to me; I read the list!