Changeset 32041


Ignore:
Timestamp:
May 14, 2017, 3:00:20 PM (2 months ago)
Author:
brainslayer
Message:

use triggers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/sysinit/sysinit-mvebu.c

    r32039 r32041  
    185185        }
    186186        set_gpio(3, 0);         //disable sata led as initial value
     187        set_gpio(4, 0);         //disable usb led as initial value
     188        set_gpio(5, 0);         //disable usb led as initial value
    187189
    188190        if (brand == ROUTER_WRT_1900AC) {
    189191                sysprintf("echo disk-activity > /sys/class/leds/mamba\\:white\\:esata/trigger");
     192                sysprintf("echo usb1-port1 > /sys/class/leds/mamba\\:white\\:usb2/trigger");
     193                sysprintf("echo \"usb2-port1 usb3-port1\" > /sys/class/leds/mamba\\:white\\:usb3_1/trigger");
     194                sysprintf("echo usb3-port2 > /sys/class/leds/mamba\\:white\\:usb3_2/trigger");
    190195        }
    191196
    192197        if (brand == ROUTER_WRT_1200AC) {
    193198                sysprintf("echo disk-activity > /sys/class/leds/caiman\\:white\\:sata/trigger");
     199                sysprintf("echo usb1-port1 > /sys/class/leds/pca963x\\:caiman\\:white\\:usb2/trigger");
     200                sysprintf("echo \"usb2-port1 usb3-port1\" > /sys/class/leds/pca963x\\:caiman\\:white\\:usb3_1/trigger");
     201                sysprintf("echo usb3-port1 > /sys/class/leds/pca963x\\:caiman\\:white\\:usb3_2/trigger");
    194202        }
    195203
    196204        if (brand == ROUTER_WRT_1900ACV2) {
    197205                sysprintf("echo disk-activity > /sys/class/leds/cobra\\:white\\:sata/brightness");
     206                sysprintf("echo usb1-port1 > /sys/class/leds/pca963x\\:cobra\\:white\\:usb2/trigger");
     207                sysprintf("echo \"usb2-port1 usb3-port1\" > /sys/class/leds/pca963x\\:cobra\\:white\\:usb3_1/trigger");
     208                sysprintf("echo usb3-port1 > /sys/class/leds/pca963x\\:cobra\\:white\\:usb3_2/trigger");
    198209
    199210        }
     
    201212        if (brand == ROUTER_WRT_1900ACS) {
    202213                sysprintf("echo disk-activity > /sys/class/leds/shelby\\:white\\:sata/brightness");
     214                sysprintf("echo usb1-port1 > /sys/class/leds/pca963x\\:shelby\\:white\\:usb2/trigger");
     215                sysprintf("echo \"usb2-port1 usb3-port1\" > /sys/class/leds/pca963x\\:shelby\\:white\\:usb3_1/trigger");
     216                sysprintf("echo usb3-port1 > /sys/class/leds/pca963x\\:shelby\\:white\\:usb3_2/trigger");
    203217
    204218        }
Note: See TracChangeset for help on using the changeset viewer.