Re: why kernel not call /sbin/hotplug ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Kay !

I repair my hotplug script, now it looks like that:



# cat /sbin/hotplug
#!/bin/sh
echo hotplug script is runned !

HOTPLUG_FW_DIR=/lib/firmware/
touch /dtv/hotplug_log

echo  $ACTION $DEVPATH $PRODUCT $INTERFACE $TYPE >> /dtv/hotplug_log

                echo 1 > /sys/$DEVPATH/loading
                cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
                echo 0 > /sys/$DEVPATH/loading

now I see that this script is runned because I see this in log. After
reboot the log looks like that:

# cat /dtv/hotplug_log
add /block/sda
add /block/sda

after putting and removing usb-flash-disk it look's like that:
# cat /dtv/hotplug_log
add /block/sda
add /block/sda
add /block/sdb/sdb1
add /block/sdb

remove /block/sdb
remove /block/sdb/sdb1

but there is no change after putting my usb-wifi card. I know that
kernel see that i put it into usb socket because I still have message
that it cannot find firmware file.

I'm confused.

Any advice for me ?

Thanx
Greg.
--
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

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux