Anyway, this would be the correct fix: commit f52ccd0c2de1c2d22d8f351579cf2d89d8110933 Author: Alexander Mezin <mezin.alexander@gmail.com> Date: Wed Jul 24 09:38:56 2013 +0700 Replace hardcoded path to udevadm with "which udevadm" diff --git a/usr/share/laptop-mode-tools/modules/hdparm b/usr/share/laptop-mode-tools/modules/hdparm index 0115422..ac4f9c0 100755 --- a/usr/share/laptop-mode-tools/modules/hdparm +++ b/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 2> /dev/null)" ]; 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=)' )"