Dropping old pre-wheezy udevadm handling.
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 24 Jun 2013 19:54:49 +0000 (21:54 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 24 Jun 2013 19:54:49 +0000 (21:54 +0200)
components/9990-aaa-fixme.sh
components/9990-misc-helpers.sh

index 6fc12f9..5a39739 100755 (executable)
@@ -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"
index 82099a4..194b871 100755 (executable)
@@ -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 ()