From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kay Sievers" Date: Thu, 09 Oct 2008 09:43:31 +0000 Subject: Re: why kernel not call /sbin/hotplug ? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Thu, Oct 9, 2008 at 11:25 AM, Grzegorz Heldt 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/hotpl= ug: > > #cat /sbin/hotplug > #!/bin/sh > echo hotplug script is runned ! > > HOTPLUG_FW_DIR=3D/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