Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 175470 Details for
Bug 166166
app-laptop/hdapsd has been broken since about 2.6.18 kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
updated init file, 2.6.27 support
hdapsd.init (text/plain), 1.29 KB, created by
Anton Bolshakov
on 2008-12-16 14:07:56 UTC
(
hide
)
Description:
updated init file, 2.6.27 support
Filename:
MIME Type:
Creator:
Anton Bolshakov
Created:
2008-12-16 14:07:56 UTC
Size:
1.29 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 > >depend() { > need localmount >} > >checkconfig() { > if [[ -z ${DISK} || -z ${THRESHOLD} ]] ; then > eerror "You should setup DISK and THRESHOLD in /etc/conf.d/hdapsd." > return 1 > fi > > if [[ ! -e /sys/block/${DISK}/queue/protect ]] && [[ ! -e /sys/block/${DISK}/device/unload_heads ]] ; then > eerror "No protect entry for ${DISK}!" > eerror "Make sure your kernel is patched with the blk_freeze patch" > return 1 > fi > > # Load the tp_smapi module first > # This is not a requirement, but it helps hdapsd adaptive mode > if [[ ! -e /sys/devices/platform/smapi ]] ; then > modprobe tp_smapi 2>/dev/null > fi > > if [[ ! -d /sys/devices/platform/hdaps ]]; then > ebegin "Loading hdaps module" > modprobe hdaps > eend $? || return 1 > fi >} > >start() { > checkconfig || return 1 > > ebegin "Starting Hard Drive Active Protection System daemon" > start-stop-daemon --start --exec /usr/sbin/hdapsd \ > --pidfile /var/run/hdapsd.pid \ > -- -b -p -d "${DISK}" -s "${THRESHOLD}" ${OPTIONS} > eend $? >} > >stop() { > ebegin "Stopping Hard Drive Active Protection System daemon" > start-stop-daemon --stop --exec /usr/sbin/hdapsd \ > --pidfile /var/run/hdapsd.pid > 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 166166
:
121020
|
125631
|
134514
|
146829
|
167586
|
173738
| 175470 |
175473
|
179153
|
180324
|
187844
|
187845
|
187928