~ubuntu-branches/ubuntu/wily/laptop-mode-tools/wily

« back to all changes in this revision

Viewing changes to usr/share/laptop-mode-tools/modules/hdparm

  • Committer: Package Import Robot
  • Author(s): Matthew Fischer
  • Date: 2013-10-22 21:44:06 UTC
  • mfrom: (2.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20131022214406-o3kqc21zbay1403k
Tags: 1.64-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules: Do not ship obsolete acpi/apm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        # It assumes more or less recent udev (> 070)
42
42
        if [ $HAVE_UDEVINFO -ne 0 ] ; then
43
43
                log "VERBOSE" "Querying $1 media type using udevinfo: "
44
 
                if [ -x /sbin/udevadm ]; then
 
44
                if [ -x "$(which udevadm 2> /dev/null)" ]; then
45
45
                        eval "$(udevadm info -q env -n $1 | egrep '(ID_TYPE=|ID_BUS=)' )"
46
46
                else
47
47
                        eval "$(udevinfo -q env -n $1 | egrep '(ID_TYPE=|ID_BUS=)' )"