[Freedombox-discuss] Add dreamplug-detect script?
Jonas Smedegaard
dr at jones.dk
Sun Aug 25 21:10:32 UTC 2013
Quoting Petter Reinholdtsen (2013-08-25 21:54:33)
> [Rick]
> > can you switch on something in uname -a?
>
> I guess so, but do not know. I am open for suggestions from someone
> actually owning a dreamplug. :) I do not have one myself, and only got
> this far thanks to help and input from Jonas on #freedombox. :)
# uname -a
Linux hydorn 3.10-2-kirkwood #1 Debian 3.10.5-1 (2013-08-07) armv5tel GNU/Linux
I.e. seems not specific enough.
This seems an accurate detection (seems unlikely that other boards
will label their LEDs the same):
# find /sys -name 'dreamplug:*'
/sys/devices/gpio-leds.1/leds/dreamplug:blue:bluetooth
/sys/devices/gpio-leds.1/leds/dreamplug:green:wifi_ap
/sys/devices/gpio-leds.1/leds/dreamplug:green:wifi
/sys/class/leds/dreamplug:blue:bluetooth
/sys/class/leds/dreamplug:green:wifi_ap
/sys/class/leds/dreamplug:green:wifi
The first three are directories, and the rest are symlinks to the first.
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/freedombox-discuss/attachments/20130825/db4bd315/attachment.sig>
More information about the Freedombox-discuss
mailing list