All pastes #79954 Raw Edit

Modified /etc/acpi/hibernate.sh

public shellscript v1 · immutable
·published 2006-07-05 22:16 UTC
rendered paste body
#!/bin/bash. /etc/default/acpi-support. /usr/share/acpi-support/power-funcs. /usr/share/acpi-support/policy-funcsif [ x$ACPI_HIBERNATE != xtrue ] && [ x$1 != xforce ]; then  exit;filogger -t hibernate.sh "Werde System mit /usr/sbin/hibernate schlafen schicken"/usr/sbin/hibernate ex=$?logger -t hibernate.sh "/usr/sbin/hibernate (${ex}) ist fertig - System wieder verfuegbar"exit $ex# Unset video posting - it's not needed for suspend to diskunset POST_VIDEO. /etc/acpi/prepare.sh#if [ x$LOCK_SCREEN = xtrue ]; then#    for x in /tmp/.X11-unix/*; do#	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`#	getXuser;#	if [ x"$XAUTHORITY" != x"" ]; then#	    export DISPLAY=":$displaynum"#	    . /usr/share/acpi-support/screenblank#	fi#    done#fi#echo -n $HIBERNATE_MODE >/sys/power/disk#echo -n "disk" >/sys/power/state#$LAPTOP_MODE stop. /etc/acpi/resume.sh