FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 08-07-2008, 08:45 PM
Martin Michlmayr
 
Default Bug#494027: better patch

Much cleaner:

--- /usr/share/initramfs-tools/hook-functions~ 2008-08-07 20:33:40.000000000 +0200
+++ /usr/share/initramfs-tools/hook-functions 2008-08-07 21:37:00.000000000 +0200
@@ -189,6 +189,7 @@
device_path="$1"

while [ "${device_path}" != "/sys" ]; do
+ sys_walk_modalias ${device_path}
driver_path="$(readlink -f ${device_path}/driver)"
if [ -e "$driver_path" ]; then
module="$(basename $(readlink -f $driver_path))"

--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:02 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org