Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 105544 Details for
Bug 141565
app-laptop/tp_smapi generates new hdaps.ko but old is being used
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new hdapsd init script
hdapsd (text/plain), 1.41 KB, created by
Roy Marples (RETIRED)
on 2007-01-05 09:27:04 UTC
(
hide
)
Description:
new hdapsd init script
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-01-05 09:27:04 UTC
Size:
1.41 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 ]] ; then > eerror "No protect entry for ${DISK}!" > eerror "Make sure your kernel is patched with the blk_freeze patch" > return 1 > fi > > if [[ ! -d /sys/devices/platform/hdaps ]]; then > ebegin "Loading hdaps module" > # OK, lets get funky! > # The tp_smapi ebuild installs an optional hdaps module into extra > # so we try and use this first, otherwise any hdaps module will do :) > local mod=$(modprobe -l -t extra hdaps) > if [[ -n ${mod} ]] ; then > insmod "${mod}" 2>/dev/null > else > modprobe hdaps 2>/dev/null > fi > > eend $? || return 1 > fi > > if [[ ! -e /sys/devices/platorm/smapi ]] ; then > modprobe tp_smapi 2>/dev/null > 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 141565
:
105544
|
146782
|
146792