Hi,
On Wednesday, 13 September 2006 20:42, Stefan Seyfried wrote:
> Hi,
>
> i am updating the mkinitrd for the next openSUSE factory release to be able
> to use userspace suspend.
> However, i'd like to still be able to use the same initrd with in-kernel
> suspend, so switching temporarily back to an old kernel will not be too
> complicated.
>
> I am right now doing this:
>
> if [ "$resume_mode" != "off" ]; then
> if [ -e "$uresumedev" -a -x /sbin/resume ]; then
> /sbin/resume
> fi
> if [ -e $resumedev ] ; then
> # Try major:minor number of the device node
> devn=$(devnumber $resumedev)
> major=$(devmajor $devn)
> minor=$(devminor $devn)
> fi
> if [ -n "$major" -a -n "$minor" ]; then
> echo "$major:$minor" > /sys/power/resume
> else
> echo "resume device $resumedev not found (ignoring)"
> fi
> fi
>
> Because if /sbin/resume won't return if it finds a valid uswsusp image,
> everything should be fine.
> However, i am not sure if it might (by accident) find a valid uswsusp
> image in a swsusp partition.
The image headers are different, so there's no such danger.
I use swsusp along with uswsusp on a regular basis.
Greetings,
Rafael
--
You never change things by fighting the existing reality.
R. Buckminster Fuller
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel