Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
pm-utils.import5806
pm-utils-1.3.0-suse-logging.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pm-utils-1.3.0-suse-logging.patch of Package pm-utils.import5806
Index: pm-utils-1.2.6.1/pm/sleep.d/00logging =================================================================== --- pm-utils-1.2.6.1.orig/pm/sleep.d/00logging 2009-06-14 03:56:09.000000000 +0200 +++ pm-utils-1.2.6.1/pm/sleep.d/00logging 2009-11-24 09:01:10.010044035 +0100 @@ -1,14 +1,33 @@ #!/bin/sh # Log some extra information at the beginning of a suspend/resume cycle. # TODO: Make this hook only run when PM_DEBUG is true? +# SUSE: setup also kernel loglevel to show a progress bar . "${PM_FUNCTIONS}" case "$1" in hibernate|suspend) [ -n "$PM_LOGFILE" ] || exit 0 - /bin/uname -a - lsmod - free + # save the old loglevel + read KERNEL_LOGLEVEL DUMMY < /proc/sys/kernel/printk + echo "export KERNEL_LOGLEVEL=$KERNEL_LOGLEVEL" >> /var/run/pm-suspend + # set the loglevel so we see the progress bar. + # if the level is higher than needed, we leave it alone. + if [ $KERNEL_LOGLEVEL -lt 5 ]; then + echo 5 > /proc/sys/kernel/printk + fi + echo "$1 initiated: `date`" + echo + echo "`/bin/uname -a`" + echo "kernel command line: '`cat /proc/cmdline`'" + echo "`lsmod`" + echo + echo "`free`" + echo + ;; + thaw|resume) + if [ -n "$KERNEL_LOGLEVEL" ] ; then + echo $KERNEL_LOGLEVEL > /proc/sys/kernel/printk + fi ;; esac
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