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


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to