Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43341 Details for
Bug 70163
speedfreq needs some love
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/speedfreq.rc
speedfreq.rc (text/plain), 1.22 KB, created by
Dennis Nienhüser (RETIRED)
on 2004-11-05 07:00:41 UTC
(
hide
)
Description:
files/speedfreq.rc
Filename:
MIME Type:
Creator:
Dennis Nienhüser (RETIRED)
Created:
2004-11-05 07:00:41 UTC
Size:
1.22 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >opts="${opts} update dbg" > >depend() { > need modules logger > use acpid >} > >check_battery() { > local ac_file="/proc/acpi/ac_adapter/AC/state" > > if [ -e /proc/acpi/ac_adapter/AC0/state ] ; then > ac_file="/proc/acpi/ac_adapter/AC0/state" > fi > > if [ -n "$(grep on-line "${ac_file}")" ] > then > SPEEDFREQ_SPEED="${SPEEDFREQ_SPEED_AC:-performance}" > else > SPEEDFREQ_SPEED="${SPEEDFREQ_SPEED_BATTERY:-powersave}" > fi >} > >start() { > check_battery > > ebegin "Starting speedfreq" > /usr/sbin/speedfreqd -P /var/run/speedfreq.pid -p ${SPEEDFREQ_SPEED:-dynamic} ${SPEEDFREQ_OPTS} > eend $? >} > >stop() { > ebegin "Stopping speedfreq" > > # adapt to current system status for people that don't have > # speedfreq running all the time (e.g. different runlevels) > update > > if [ -e /var/run/speedfreq.pid ] ; then > local pid="$(</var/run/speedfreq.pid)" > kill ${pid} >& /dev/null > eend $? "Could not kill pid '${pid}'" > else > eend 1 "Lost pid file :(" > fi >} > >update() { > # should only be run when speedfreqd is started > if [ ! -e /var/run/speedfreq.pid ] ; then > exit 0 > fi > > check_battery > /usr/bin/speedfreq -p ${SPEEDFREQ_SPEED} >}
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 Raw
Actions:
View
Attachments on
bug 70163
:
43339
|
43340
|
43341
|
43343
|
46077
|
46367
|
46368
|
46370
|
47371
|
47488
|
47490