-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Somebody in the thread at some point said: | 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)
One way is to parse /proc/bus/usb/devices... BT module has power and a reset thing, but looking at those states doesn't tell you if it is ready for duty. Or, if the BT device makes a network interface, test for presence of that. | 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? Same guy will help if we are being a host, I'll meddle around and see about being a gadget. - -Andy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkgMXlYACgkQOjLpvpq7dMrd7QCggOgkvw2AI7wd16927Mfi7gTD GjQAnRpCDM0urcy6O15BTWqbHML9+hgW =UUsA -----END PGP SIGNATURE-----
