Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51527 Details for
Bug 45593
laptop mode init script for Gentoo Linux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
laptop-mode.init
laptop-mode.init (text/plain), 882 bytes, created by
Christian Ludwig
on 2005-02-18 07:55:09 UTC
(
hide
)
Description:
laptop-mode.init
Filename:
MIME Type:
Creator:
Christian Ludwig
Created:
2005-02-18 07:55:09 UTC
Size:
882 bytes
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header:$ ># description: Starts and stops "laptop-mode" - tweaks system behavior ># to extend battery life. ># ># config: /etc/laptop-mode/laptop-mode.conf ># Based on original init.d script included in laptop-mode-tools package. ># Ported to Gentoo by: Adrian Almenar > >depend() { > use logger >} > >checkconfig() { > if [ ! -e /proc/sys/vm/laptop_mode ] ; then > eerror "Laptop-mode support has not been compiled into the kernel" > return 1 > fi >} > >start() { > ebegin "Initializing laptop mode" > touch /var/run/laptop-mode-enabled > /usr/sbin/laptop_mode auto > /dev/null > eend $? >} > >stop() { > ebegin "Stopping laptop mode" > rm -f /var/run/laptop-mode-enabled > /usr/sbin/laptop_mode stop > /dev/null > eend $? >}
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 45593
:
27911
|
27912
|
32076
|
32077
|
32078
|
34630
|
34631
|
39036
|
39037
|
39477
|
41295
|
41296
|
48913
|
51525
| 51527