lkml.org 
[lkml]   [2010]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] add netdev led trigger
    Hi!

    > Add a netdev LED trigger for all Blinkenlights lovers...
    > Originally taken from https://dev.openwrt.org/ticket/2776
    > Slightly updated for 2.6.24 by Mickey Lauer <mickey@openmoko.org>
    > and for 2.6.36 by Eric Cooper <ecc@cmu.edu>

    Nice!

    > +/*
    > + * Configurable sysfs attributes:
    > + *
    > + * device_name - network device name to monitor
    > + *
    > + * interval - duration of LED blink, in milliseconds

    This needs to go to Doc/ somewhere.

    > + * mode - either "none" (LED is off) or a space separated list
    > + * of one or more of:
    > + * link: LED's normal state reflects whether the link is up (has carrier)
    > + * or not
    > + * tx: LED blinks on transmitted data
    > + * rx: LED blinks on receive data
    > + *
    > + * Some suggestions:
    > + *
    > + * Simple link status LED:
    > + * $ echo netdev >someled/trigger
    > + * $ echo eth0 >someled/device_name
    > + * $ echo link >someled/mode
    > + *
    > + * Ethernet-style link/activity LED:
    > + * $ echo netdev >someled/trigger
    > + * $ echo eth0 >someled/device_name
    > + * $ echo "link tx rx" >someled/mode

    One value per file?

    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2010-11-17 12:09    [W:0.022 / U:30.240 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site