Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 296659 Details for
Bug 334435
app-laptop/hdapsd-20090401-r1 add support of removable disk to init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
diff agains files/hdapsd.init
hdaps.init.diff (text/plain), 1.22 KB, created by
Henning Schild
on 2011-12-22 13:53:15 UTC
(
hide
)
Description:
diff agains files/hdapsd.init
Filename:
MIME Type:
Creator:
Henning Schild
Created:
2011-12-22 13:53:15 UTC
Size:
1.22 KB
patch
obsolete
>--- hdapsd.init 2009-10-26 07:56:26.000000000 +0100 >+++ /etc/init.d/hdapsd 2010-02-09 21:05:06.415196323 +0100 >@@ -12,15 +12,17 @@ > return 1 > fi > >- if [ ! -b /dev/${DISK} ]; then >- eerror "Could not find disk /dev/${DISK}!" >- eerror "Adjust the DISK setting in /etc/conf.d/hdapsd" >- return 1 >- fi >+ for disk in ${DISK}; do >+ if [[ -b /dev/$disk ]] && [[ -e /sys/block/$disk/device/unload_heads ]]; then >+ DISKOPTS+="-d $disk " >+ else >+ ewarn "$disk from DISKS does not exist or does not support unload feature" >+ fi >+ done > >- 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" >+ if [[ -z ${DISKOPTS} ]]; then >+ eerror "Could not find any of the disks!" >+ eerror "Adjust the DISK setting in /etc/conf.d/hdapsd" > return 1 > fi > >@@ -43,7 +45,7 @@ > 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} >+ -- -b -p ${DISKOPTS} -s "${THRESHOLD}" ${OPTIONS} > 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 334435
:
247998
|
247999
|
296605
| 296659