|
|
|
Re: USB Hotplug support and use | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
[please format your messages at max 72 chars per line, thanks] Robbie wrote: > Well, basically I'm trying to write a script that will mount /dev/sda1 > when I receive signal that the usb device is connected. > > I believe I don't need udev or mdev because I know what my devices are > and I have already created nodes for them. In contrast to what other messages in this thread have said, there definitely is still hotplug support in 2.6.18. The easiest way for you to use it would probably be the /sbin/hotplug support. This is an executable or shell script that is started for each hotplug event, and its environment contains all information you will need to determine what to do (e.g. mount disks, start programs, whatever). Read function kobject_uevent() in lib/kobject_uevent.c to see which information is passed, and how. You can override the location by writing to /proc/sys/kernel/hotplug, if needed. ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |