Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 251601 Details for
Bug 342049
app-laptop/laptop-mode-tools and /var/run on tmpfs issue
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
laptop mode full init script
laptop_mode (text/plain), 1.15 KB, created by
i.Dark_Templar
on 2010-10-22 15:48:47 UTC
(
hide
)
Description:
laptop mode full init script
Filename:
MIME Type:
Creator:
i.Dark_Templar
Created:
2010-10-22 15:48:47 UTC
Size:
1.15 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4,v 1.2 2009/03/17 02:16:16 dirtyepic Exp $ > >opts="${opts} reload" > >depend() { > need localmount > use acpid hald > after bootmisc >} > >checkconfig() { > if [ ! -f /proc/sys/vm/laptop_mode ] ; then > eerror "Kernel does not support laptop_mode" > return 1 > fi >} > >start() { > checkconfig || return 1 > > ebegin "Starting laptop_mode" > # bug #342049 fix > # check if dir exists and creates if it doesn't > checkpath -q -d -m 755 /var/run/laptop-mode-tools > touch /var/run/laptop-mode-tools/enabled > /usr/sbin/laptop_mode auto >/dev/null > eend $? >} > >stop() { > ebegin "Stopping laptop_mode" > rm -f /var/run/laptop-mode-tools/enabled > /usr/sbin/laptop_mode stop >/dev/null > eend $? >} > >reload() { > if ! service_started "${SVCNAME}" ; then > eerror "${SVCNAME} has not yet been started" > return 1 > fi > > ebegin "Reloading laptop_mode" > /usr/sbin/laptop_mode stop >/dev/null > rm -f /var/run/laptop-mode-tools/* > /usr/sbin/laptop_mode auto force >/dev/null > eend $? >} > ># vim: set ts=4 :
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 342049
:
251469
|
251471
|
251569
|
251571
|
251585
|
251587
|
251589
| 251601 |
251603
|
267307