Changeset 32039


Ignore:
Timestamp:
May 14, 2017, 1:51:07 PM (10 days ago)
Author:
brainslayer
Message:

set trigger

File:
1 edited

Legend:

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

    r32038 r32039  
    184184                set_smp_affinity(46, 2);
    185185        }
    186         set_gpio(3,0); //disable sata led as initial value
     186        set_gpio(3, 0);         //disable sata led as initial value
     187
     188        if (brand == ROUTER_WRT_1900AC) {
     189                sysprintf("echo disk-activity > /sys/class/leds/mamba\\:white\\:esata/trigger");
     190        }
     191
     192        if (brand == ROUTER_WRT_1200AC) {
     193                sysprintf("echo disk-activity > /sys/class/leds/caiman\\:white\\:sata/trigger");
     194        }
     195
     196        if (brand == ROUTER_WRT_1900ACV2) {
     197                sysprintf("echo disk-activity > /sys/class/leds/cobra\\:white\\:sata/brightness");
     198
     199        }
     200
     201        if (brand == ROUTER_WRT_1900ACS) {
     202                sysprintf("echo disk-activity > /sys/class/leds/shelby\\:white\\:sata/brightness");
     203
     204        }
     205
     206        if (brand == ROUTER_WRT_3200ACM) {
     207                sysprintf("echo disk-activity > /sys/class/leds/rango\\:white\\:sata/brightness");
     208        }
    187209
    188210        return;
    189         cprintf("done\n");
    190211}
    191212
Note: See TracChangeset for help on using the changeset viewer.