On Monday 21 April 2008 11:23:10 Carsten Haitzler wrote: > quick one guys - where do i very quickly and reliably find out: > > 1. if bluetooth is up and active (what /proc or /sys magic file do i need) > 2. usb - when someone connects via usb (yes i can piggyback on the power > system saying its connected to power and charging but really i want to > detect ANY usb connectivity - be it being plugged into a host, or a gadget > being plugged in). > > got any quick and dirties for me?
Check neod (buttonactions.c) - it handles both. :M:
