Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 81767 Details for
Bug 104683
Hdparm does not set CD/DVD drive parameters if disc not inserted
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
hdparm-init-7.diff (text/plain), 617 bytes, created by
Matthias Foerste
on 2006-03-09 06:48:09 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Matthias Foerste
Created:
2006-03-09 06:48:09 UTC
Size:
617 bytes
patch
obsolete
>--- /usr/portage/sys-apps/hdparm/files/hdparm-init-7 2006-02-22 01:36:47.000000000 +0100 >+++ /etc/init.d/hdparm 2006-03-09 13:58:50.000000000 +0100 >@@ -116,8 +116,10 @@ > do > # check that the block device really exists > # by opening it for reading >- local errmsg=$( : 2>/dev/null <$device ) >- if [[ -b $device ]] && [[ $? == 0 || $(errmsg) == "*: No medium found" ]] >+ local errmsg status >+ errmsg=$( : 2>&1 <$device ) >+ status=$? >+ if [[ -b $device ]] && [[ ${status} == 0 || ${errmsg:$((-25))} == "${device}: No medium found" ]] > then > eval args=\${`basename $device`_args} > do_hdparm
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 104683
: 81767