[debian-edu-commits] r78741 - trunk/src/hw-support-handler
pere at alioth.debian.org
pere at alioth.debian.org
Mon Jan 14 22:08:16 UTC 2013
Author: pere
Date: 2013-01-14 22:08:16 +0000 (Mon, 14 Jan 2013)
New Revision: 78741
Modified:
trunk/src/hw-support-handler/hw-support-lookup
Log:
Rewrite tohandle /sys directories with space in the name.
Modified: trunk/src/hw-support-handler/hw-support-lookup
===================================================================
--- trunk/src/hw-support-handler/hw-support-lookup 2013-01-14 21:27:31 UTC (rev 78740)
+++ trunk/src/hw-support-handler/hw-support-lookup 2013-01-14 22:08:16 UTC (rev 78741)
@@ -75,7 +75,7 @@
if [ "$1" ] ; then
touch "$*"
else
- for id in $(cat $(find /sys -name modalias) | egrep '^(usb|pci|acpi|dmi):' | sort -u | escape ); do
+ for id in $(find /sys -name modalias -print0 | xargs -0 cat | egrep '^(usb|pci|acpi|dmi):' | sort -u | escape ); do
touch "$id"
done
fi
More information about the debian-edu-commits
mailing list