From: Daniel Baumann Date: Mon, 24 Jun 2013 19:54:49 +0000 (+0200) Subject: Dropping old pre-wheezy udevadm handling. X-Git-Tag: debian/4.0_a14-1~16 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=b14538aeeb0e9422d827f3ef183aa50baa2fa693;p=live-boot-grml.git Dropping old pre-wheezy udevadm handling. --- diff --git a/components/9990-aaa-fixme.sh b/components/9990-aaa-fixme.sh index 6fc12f9..5a39739 100755 --- a/components/9990-aaa-fixme.sh +++ b/components/9990-aaa-fixme.sh @@ -30,15 +30,6 @@ then export PATH fi -# handle upgrade path from old udev (using udevinfo) to -# recent versions of udev (using udevadm info) -if [ -x /sbin/udevadm ] -then - udevinfo='/sbin/udevadm info' -else - udevinfo='udevinfo' -fi - custom_overlay_label="persistence" persistence_list="persistence.conf" old_persistence_list="live-persistence.conf" diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 82099a4..194b871 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -81,7 +81,7 @@ is_nice_device () { sysfs_path="${1#/sys}" - if /sbin/udevadm test-builtin path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)" + if udevadm test-builtin path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)" then return 0 elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$' @@ -379,7 +379,7 @@ is_in_comma_sep_list () sys2dev () { sysdev=${1#/sys} - echo "/dev/$($udevinfo -q name -p ${sysdev} 2>/dev/null|| echo ${sysdev##*/})" + echo "/dev/$(udevadm info -q name -p ${sysdev} 2>/dev/null|| echo ${sysdev##*/})" } subdevices ()