Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
laptop-mode-tools
laptop-mode-udevadm.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File laptop-mode-udevadm.diff of Package laptop-mode-tools
--- usr/share/laptop-mode-tools/modules/hdparm +++ usr/share/laptop-mode-tools/modules/hdparm @@ -19,20 +19,20 @@ local BUS= HAVE_UDEVINFO=0 - if [ -x "$(which udevinfo 2> /dev/null)" ] ; then - UDEVVERSION=$(udevinfo -V | awk '{ print $3; }') + if [ -x "$(which udevadm 2> /dev/null)" ] ; then + UDEVVERSION=$(udevadm info -V | awk '{ print $3; }') if [ "$UDEVVERSION" -gt 70 ] ; then HAVE_UDEVINFO=1 else - echo "udevinfo present but version not > 070, not using udev" >> $OUTPUT + echo "udevadm info present but version not > 070, not using udev" >> $OUTPUT fi fi # If we are running udev, this is the most portable way # It assumes more or less recent udev (> 070) if [ $HAVE_UDEVINFO -ne 0 ] ; then - echo -n "Querying $1 media type using udevinfo: " >> $OUTPUT - eval "$(udevinfo -q env -n $1 2>> $OUTPUT | egrep '(ID_TYPE=|ID_BUS=)' 2>&1 | tee -a $OUTPUT)" + echo -n "Querying $1 media type using udevadm info: " >> $OUTPUT + eval "$(udevadm info -q env -n $1 2>> $OUTPUT | egrep '(ID_TYPE=|ID_BUS=)' 2>&1 | tee -a $OUTPUT)" if [ -n "$ID_TYPE" -a -n "$ID_BUS" ] ; then echo "type '$ID_TYPE on bus '$ID_BUS' detected" >> $OUTPUT MEDIA=$ID_TYPE
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor