[linux-pm] [Suspend-devel] Dangers of touching disk between suspend and resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote:
> So if somebody submits a patch that implements a "reset_signature" program,
> i'll include that in the suspend package.

I don't know if you care (you might not want to support Suspend2), but
for Suspend2 enabled kernels, you can just do:

[ -f /sys/power/suspend2/image_exists ] && echo 0 > /sys/power/suspend2/image_exists

You can cat the file to find out if an image exists, if you prefer (eg
from an initrd/ramfs). Return values are:

-1: resume= doesn't point to a recognised signature
0: No image, normal signature
1: Image exists.

Regards,

Nigel



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux