Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 47488 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.16 KB, created by
Dennis Nienhüser (RETIRED)
on 2005-01-03 08:33:04 UTC
(
hide
)
Description:
files/speedfreq.rc
Filename:
MIME Type:
Creator:
Dennis Nienhüser (RETIRED)
Created:
2005-01-03 08:33:04 UTC
Size:
1.16 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" > >depend() { > need modules logger > use acpid >} > >check_battery() { > if on_ac_power > 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} ${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) > adapt > > 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() { > # only update if user said so in config file > if [[ "${IGNORE_ACPID}" == "yes" ]] ; then > exit 0 > fi > > adapt >} > >adapt() { > # 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