On Thu, Oct 9, 2008 at 11:25 AM, Grzegorz Heldt <grzegorz.heldt@xxxxxxxxx> wrote: > I have embedded system based on sh4-cpu with kernel 2.6.17.14. I have > build latest rt73.ko module which is usb-wifi driver. This driver also > need firmware to be loaded into device during initialization. > > Basing on information that I found, i put following script in /sbin/hotplug: > > #cat /sbin/hotplug > #!/bin/sh > echo hotplug script is runned ! > > HOTPLUG_FW_DIR=/lib/firmware/ > > echo 1 > /sys/$DEVPATH/loading > cat $HOTPLUG_FW_DIR/$FIRMWARE > /sysfs/$DEVPATH/data /sysfs/... ? And do not use echo on stdout, kernel forked process don't have that, and also check for $ACTION=add. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html