Changeset 41336


Ignore:
Timestamp:
2014-06-24T20:18:53+02:00 (4 years ago)
Author:
luka
Message:

kirkwood: base-files: use /lib/functions/kirkwood.sh

Signed-off-by: Luka Perkov <luka@…>

Location:
trunk/target/linux/kirkwood/base-files/etc/uci-defaults
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds

    r40871 r41336  
    55 
    66. /lib/functions/uci-defaults.sh 
     7. /lib/functions/kirkwood.sh 
    78 
    8 case "`cat /proc/device-tree/model`" in 
    9 "Seagate FreeAgent Dockstar") 
     9board=$(kirkwood_board_name) 
     10 
     11case "$board" in 
     12"dockstar") 
    1013        ucidef_set_led_default "health" "status:green:health" "1" 
    1114        ucidef_set_led_default "fault" "status:orange:fault" "1" 
    1215        ;; 
    13 "Cloud Engines Pogoplug E02") 
     16"ea4500") 
     17        ucidef_set_led_default "health" "ea4500:white:health" "1" 
     18        ucidef_set_led_default "pulse" "ea4500:white:pulse" "1" 
     19        ;; 
     20"ib62x0") 
     21        ucidef_set_led_default "health" "ib62x0:green:os" "1" 
     22        ucidef_set_led_default "fault" "ib62x0:red:os" "1" 
     23        ;; 
     24"pogo_e02") 
    1425        ucidef_set_led_default "health" "status:green:health" "1" 
    1526        ucidef_set_led_default "fault" "status:orange:fault" "1" 
    16         ;; 
    17 "Linksys EA4500") 
    18         ucidef_set_led_default "health" "ea4500:white:health" "1" 
    19         ucidef_set_led_default "pulse" "ea4500:white:pulse" "1" 
    2027        ;; 
    2128*) 
  • trunk/target/linux/kirkwood/base-files/etc/uci-defaults/02_network

    r40871 r41336  
    2222 
    2323. /lib/functions/uci-defaults.sh 
     24. /lib/functions/kirkwood.sh 
     25 
     26board=$(kirkwood_board_name) 
    2427 
    2528ucidef_set_interface_loopback 
    2629 
    27 case "`cat /proc/device-tree/model`" in 
    28 "Seagate FreeAgent Dockstar") 
     30case "$board" in 
     31"dockstar") 
    2932        set_lan_dhcp "eth0" 
    3033        ;; 
    31 "Iomega Iconnect") 
     34"iconnect") 
    3235        set_lan_dhcp "eth0" 
    3336        ;; 
    34 "RaidSonic ICY BOX IB-NAS62x0 (Rev B)") 
     37"ib62x0") 
    3538        set_lan_dhcp "eth0" 
    3639        ;; 
    37 "Cloud Engines Pogoplug E02") 
     40"pogo_e02") 
    3841        set_lan_dhcp "eth0" 
    3942        ;; 
    40 "Linksys EA4500") 
     43"ea4500") 
    4144        ucidef_set_interfaces_lan_wan "eth0" "eth1" 
    4245        ;; 
Note: See TracChangeset for help on using the changeset viewer.