You might even want to look at oeventsd, part of FSO ( freesmartphone.org ). URL: http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Events.html;hb=HEAD
On Fri, Dec 12, 2008 at 4:25 AM, Pander <[email protected]> wrote: > 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 >> [email protected] >> http://lists.openmoko.org/mailman/listinfo/community >> > > > > _______________________________________________ > Openmoko community mailing list > [email protected] > http://lists.openmoko.org/mailman/listinfo/community > _______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

