Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 111557 Details for
Bug 99446
sys-power/acpi-support-0.50 (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
acpi-support-0.91-gentoo.patch
acpi-support-0.91-gentoo.patch (text/plain), 3.36 KB, created by
Andrey Kislyuk (RETIRED)
on 2007-02-28 14:55:19 UTC
(
hide
)
Description:
acpi-support-0.91-gentoo.patch
Filename:
MIME Type:
Creator:
Andrey Kislyuk (RETIRED)
Created:
2007-02-28 14:55:19 UTC
Size:
3.36 KB
patch
obsolete
>diff -ur orig/acpi-support-0.91/debian/init.d work/acpi-support-0.91/debian/init.d >--- orig/acpi-support-0.91/debian/init.d 2006-03-28 11:26:44.000000000 -0500 >+++ work/acpi-support-0.91/debian/init.d 2007-02-28 09:14:59.000000000 -0500 >@@ -1,39 +1,37 @@ >-#!/bin/bash >+#!/sbin/runscript > # INIT script to check whether we're on batteries, and so start with laptop > # mode etc enabled. > > # BUGS: unless we start *really* late, we have no way of throttling > # xscreensaver, since it won't be there to command. >-. /usr/share/acpi-support/power-funcs >- >-test -f /lib/lsb/init-functions || exit 1 >-. /lib/lsb/init-functions >- >-test -d /var/lib/acpi-support || exit 0 >- >-shopt -s nullglob >- >-case "$1" in >- start) >- log_begin_msg "Checking battery state..." >- if [ `echo /proc/acpi/ac_adapter/*` ]; then >- /etc/acpi/power.sh >- fi >- # Source everything in /etc/acpi/start.d/ >- for SCRIPT in /etc/acpi/start.d/*.sh; do >- . $SCRIPT >- done >- log_end_msg 0 >- ;; >- stop) >- log_begin_msg "Disabling power management..." >- if [ `echo /proc/acpi/ac_adapter/*` ]; then >- /etc/acpi/power.sh stop >- fi >- log_end_msg 0 >- ;; >- *) >- ;; >-esac >- > >+depend() { >+ need acpid >+} >+ >+start() { >+ ebegin "Starting acpi-support" >+ . /usr/share/acpi-support/power-funcs >+ >+ test -d /var/lib/acpi-support || eend 0 >+ >+ shopt -s nullglob >+ >+ ebegin "Checking battery state..." >+ if [ `echo /proc/acpi/ac_adapter/*` ]; then >+ /etc/acpi/power.sh >+ fi >+ # Source everything in /etc/acpi/start.d/ >+ for SCRIPT in /etc/acpi/start.d/*.sh; do >+ . $SCRIPT >+ done >+ eend 0 >+} >+ >+stop() { >+ ebegin "Disabling power management..." >+ if [ `echo /proc/acpi/ac_adapter/*` ]; then >+ /etc/acpi/power.sh stop >+ fi >+ eend 0 >+} >Only in work/acpi-support-0.91/debian: init.d~ >diff -ur orig/acpi-support-0.91/hibernatebtn.sh work/acpi-support-0.91/hibernatebtn.sh >--- orig/acpi-support-0.91/hibernatebtn.sh 2006-02-06 09:54:47.000000000 -0500 >+++ work/acpi-support-0.91/hibernatebtn.sh 2007-02-28 09:43:52.000000000 -0500 >@@ -1,3 +1,3 @@ > #!/bin/bash >-. /usr/share/acpi-support/key-constants >-acpi_fakekey $KEY_SUSPEND >+ >+. /etc/acpi/hibernate.sh >diff -ur orig/acpi-support-0.91/sleepbtn.sh work/acpi-support-0.91/sleepbtn.sh >--- orig/acpi-support-0.91/sleepbtn.sh 2006-02-06 09:55:00.000000000 -0500 >+++ work/acpi-support-0.91/sleepbtn.sh 2007-02-28 09:41:59.000000000 -0500 >@@ -1,3 +1,3 @@ > #!/bin/bash >-. /usr/share/acpi-support/key-constants >-acpi_fakekey $KEY_SLEEP >+ >+. /etc/acpi/sleep.sh >diff -ur orig/acpi-support-0.91/vbesave work/acpi-support-0.91/vbesave >--- orig/acpi-support-0.91/vbesave 2006-05-03 16:31:51.000000000 -0400 >+++ work/acpi-support-0.91/vbesave 2007-02-28 09:17:44.000000000 -0500 >@@ -3,8 +3,6 @@ > test -x /usr/sbin/vbetool || exit 0 > set -e > >-. /lib/lsb/init-functions >- > test -f /etc/default/rcS && . /etc/default/rcS > test -f /etc/default/acpi-support && . /etc/default/acpi-support > test -f /usr/share/acpi-support/device-funcs && . /usr/share/acpi-support/device-funcs >@@ -20,20 +18,16 @@ > fi > > DeviceConfig >- log_begin_msg "Saving VESA state..." > if [ "$SAVE_VBE_STATE" = "true" ]; then > if [ "$VERBOSE" = no ]; then > if ! vbetool vbestate save > $VBESTATE 2>/dev/null; then >- log_end_msg $? > exit 1 > fi > else > if ! vbetool vbestate save > $VBESTATE ; then >- log_end_msg $? > exit 1 > fi > fi >- log_end_msg 0 > fi > ;; > *)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99446
:
89769
|
90474
|
111555
| 111557