Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
suspend
mkinitrd-boot.kernel.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mkinitrd-boot.kernel.sh of Package suspend
#!/bin/bash # #%stage: filesystem #%provides: resume #%depends: resume.userspace # ##### software suspend resume ## ## If software suspending has suspended the computer before ## this script tries to resume it to the state ## it was before. ## This implements the pure kernel level resume ## ## Command line parameters ## ----------------------- ## ## resume the device to resume from ## [ "$noresume" ] && resume_mode=off # Verify manual resume mode if [ "$resume_mode" != "off" -a -n "$resumedev" ]; then if [ -x /sbin/resume -o -w /sys/power/resume ]; then echo "Trying manual resume from $resumedev" resume_mode=1 else resumedev= fi fi discover_kernel_resume() { local resume devn major minor if [ ! -f /sys/power/resume ] ; then return fi if [ -z "$resumedev" ] ; then return fi # Waits for the resume device to appear if [ "$resume_mode" != "off" ]; then 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 "Invoking in-kernel resume from $resumedev" echo "$major:$minor" > /sys/power/resume else echo "resume device $resumedev not found (ignoring)" fi fi } wait_for_events # Check for a resume device discover_kernel_resume unset discover_kernel_resume
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor