projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7c6f95f
)
Applying patch from Michael Prokop <mika@grml.org> to update udev usage in is_nice_de...
author
Daniel Baumann
<mail@daniel-baumann.ch>
Tue, 15 Oct 2013 07:07:31 +0000
(09:07 +0200)
committer
Daniel Baumann
<mail@daniel-baumann.ch>
Tue, 15 Oct 2013 07:07:31 +0000
(09:07 +0200)
components/9990-misc-helpers.sh
patch
|
blob
|
history
diff --git
a/components/9990-misc-helpers.sh
b/components/9990-misc-helpers.sh
index
2a3e6ad
..
902ddfe
100755
(executable)
--- a/
components/9990-misc-helpers.sh
+++ b/
components/9990-misc-helpers.sh
@@
-76,7
+76,7
@@
is_nice_device ()
{
sysfs_path="${1#/sys}"
- 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)
"
+ if udevadm
info --query=all --path="${sysfs_path}" | egrep -q "DEVTYPE=disk
"
then
return 0
elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'