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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to