Skip to content

Commit

Permalink
Dropping old pre-wheezy udevadm handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Jun 24, 2013
1 parent a6c584b commit b14538a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions components/9990-aaa-fixme.sh
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions components/9990-misc-helpers.sh
Expand Up @@ -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]$'
Expand Down Expand Up @@ -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 ()
Expand Down

0 comments on commit b14538a

Please sign in to comment.