Changeset 29004


Ignore:
Timestamp:
2011-11-13T00:40:21+01:00 (6 years ago)
Author:
blogic
Message:

lantiq: add uci-defaults code for handling leds

Location:
trunk/target/linux/lantiq/base-files/etc/uci-defaults
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/base-files/etc/uci-defaults/leds

    r29003 r29004  
    22# 
    33# Copyright (C) 2011 OpenWrt.org 
     4# based on ar71xx 
    45# 
    56 
     
    7879} 
    7980 
    80 . /lib/ar71xx.sh 
     81. /lib/lantiq.sh 
    8182 
    82 board=$(ar71xx_board_name) 
     83board=$(lantiq_board_name) 
    8384 
    8485case "$board" in 
    85 rb750) 
    86         set_led_default "act" "act" "rb750:green:act" "1" 
    87         set_led_netdev "port1" "port1" "rb750:green:port1" "eth1" 
     86ARV7525PW) 
     87        set_led_netdev "wifi" "wifi" "soc:green:wifi" "wlan0" 
     88        set_led_default "fxs1" "fxs1" "soc:green:fxs1" "1" 
     89        set_led_default "fxs2" "fxs2" "soc:green:fxs2" "1" 
     90        set_led_default "dsl" "dsl" "soc:red:dsl" "1" 
     91        set_led_default "online" "online" "soc:green:online" "1" 
    8892        ;; 
    8993 
    90 dir-825-b1) 
    91         set_led_usbdev "usb" "USB" "dir825b1:blue:usb" "1-1" 
    92         ;; 
    93  
    94 mzk-w04u) 
    95         set_led_usbdev "usb" "USB" "planex:green:usb" "1-1" 
    96         ;; 
    97  
    98 nbg460n_550n_550nh) 
    99         set_led_wlan "wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt" 
    100         ;; 
    101  
    102 tl-mr3220 | \ 
    103 tl-mr3420 ) 
    104         set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" 
    105         ;; 
    106  
    107 tl-wr741nd-v4 | \ 
    108 tl-wr941nd) 
    109         set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" 
    110         ;; 
    111  
    112 tl-wr1043nd) 
    113         set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" 
    114         set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" 
    115         ;; 
    116  
    117 wrt160nl) 
    118         set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt" 
    119         ;; 
    120  
    121 wndr3700 | \ 
    122 wndr3700v2) 
    123         set_led_default "wan" "WAN LED (green)" "wndr3700:green:wan" "0" 
    124         set_led_usbdev "usb" "USB" "wndr3700:green:usb" "1-1" 
    125         ;; 
    126  
    127 wzr-hp-g300nh) 
    128         set_led_wlan "wlan" "Wireless" "buffalo:green:wireless" "phy0tpt" 
    129         set_led_netdev "router" "Router" "buffalo:green:router" "eth1" 
    130         set_led_usbdev "usb" "USB" "buffalo:blue:usb" "1-1" 
    131         ;; 
    132  
    133 zcn-1523h-2) 
    134         set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0" 
    135         ;; 
    136  
    137 zcn-1523h-5) 
    138         set_led_netdev "lan1" "lan1" "zcn-1523h:green:lan1" "eth0" 
    139         set_led_netdev "lan2" "lan2" "zcn-1523h:green:lan2" "eth1" 
     94GIGASX76X) 
     95        set_led_netdev "wifi" "wifi" "soc:green:wifi" "ath0" 
     96        set_led_usbdev "usb" "USB" "soc:green:usb" "1-1" 
    14097        ;; 
    14198esac 
Note: See TracChangeset for help on using the changeset viewer.