[OM2008] USB events -> scripts?

Pander pander at users.sourceforge.net
Fri Dec 12 13:25:23 CET 2008


On Fri, December 12, 2008 12:35, Vasco Névoa wrote:
>
> Hi all.
>
> I want to run a script automatically every time the USB is plugged or
> unplugged.

This is in the udev rules.

See
http://lists.openmoko.org/pipermail/community/2008-November/thread.html#35417
for ideas concerning keybaords and
https://bugs.launchpad.net/ubuntu/+bug/289548 concerning networking.

> Where should I hook in the scripts? /etc/apm/?/... or somewhere else?
> I've looked into using the /etc/network/interfaces, but this doesn't
> work because usb0 does not get "downed" on unplug - so it is always
> "up" since booting...
>
> Thanks,
>
> Vasco.
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>






More information about the community mailing list