Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 333172 Details for
Bug 448334
sys-apps/hdparm: add support for disk id in /etc/init.d/hdparm
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for sys-apps/hdparm-9.39
hdparm-conf-disk-id.patch (text/plain), 801 bytes, created by
Axel
on 2012-12-23 23:36:00 UTC
(
hide
)
Description:
patch for sys-apps/hdparm-9.39
Filename:
MIME Type:
Creator:
Axel
Created:
2012-12-23 23:36:00 UTC
Size:
801 bytes
patch
obsolete
>--- a/etc/init.d/hdparm 2012-12-24 00:32:51.375277569 +0100 >+++ b/etc/init.d/hdparm 2012-12-24 00:32:55.435277497 +0100 >@@ -43,11 +43,27 @@ > case ${errmsg} in > *": No medium found") nomed=0;; > esac >+ args="" > if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then > local conf_var="${device##*/}_args" > eval args=\$${conf_var} >- do_hdparm > fi >+ >+ # allows a disk to be configured using its id (override above) >+ # we replace all dashes by underscores >+ for alias in /dev/disk/by-id/* ; do >+ if [ "${alias}" -ef "${device}" ] ; then >+ eval args_tmp=\$"$(basename "${alias}" | sed 's/-/_/g')"_args >+ if [ -n "${args_tmp}" ]; then >+ args="${args_tmp}" >+ fi >+ break >+ fi >+ done >+ >+ if [ -n "$args" ]; then >+ do_hdparm >+ fi; > done > } >
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 448334
: 333172 |
435586