Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354054 Details for
Bug 477958
app-laptop/laptop-mode-tools-1.63-r2 - replace hardcoded path to /sbin/udevadm
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace "/sbin/udevadm" with "which udevadm"
fix-hardcoded-udevadm (text/plain), 678 bytes, created by
Alexander Mezin
on 2013-07-24 00:35:27 UTC
(
hide
)
Description:
Replace "/sbin/udevadm" with "which udevadm"
Filename:
MIME Type:
Creator:
Alexander Mezin
Created:
2013-07-24 00:35:27 UTC
Size:
678 bytes
patch
obsolete
>Index: laptop-mode-tools_1.63/usr/share/laptop-mode-tools/modules/hdparm >=================================================================== >--- laptop-mode-tools_1.63.orig/usr/share/laptop-mode-tools/modules/hdparm >+++ laptop-mode-tools_1.63/usr/share/laptop-mode-tools/modules/hdparm >@@ -41,7 +41,7 @@ is_capable() { > # It assumes more or less recent udev (> 070) > if [ $HAVE_UDEVINFO -ne 0 ] ; then > log "VERBOSE" "Querying $1 media type using udevinfo: " >- if [ -x /sbin/udevadm ]; then >+ if [ -x "$(which udevadm)" ]; then > eval "$(udevadm info -q env -n $1 | egrep '(ID_TYPE=|ID_BUS=)' )" > else > eval "$(udevinfo -q env -n $1 | egrep '(ID_TYPE=|ID_BUS=)' )"
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 477958
: 354054