Changeset 47733


Ignore:
Timestamp:
2015-12-03T23:27:18+01:00 (2 years ago)
Author:
jow
Message:

kirkwood: switch from uci-defaults to board.d

Signed-off-by: Jo-Philipp Wich <jow@…>

Location:
trunk/target/linux/kirkwood/base-files/etc
Files:
1 added
1 deleted
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/kirkwood/base-files/etc/board.d/00_model

    • Property svn:executable deleted
  • trunk/target/linux/kirkwood/base-files/etc/board.d/01_leds

    r47732 r47733  
    11#!/bin/sh 
    22# 
    3 # Copyright (C) 2012-2014 OpenWrt.org 
     3# Copyright (C) 2012-2015 OpenWrt.org 
    44# 
    55 
    6 . /lib/functions/uci-defaults.sh 
     6. /lib/functions/uci-defaults-new.sh 
    77. /lib/kirkwood.sh 
     8 
     9board_config_update 
    810 
    911board=$(kirkwood_board_name) 
     
    2325"goflexhome" | \ 
    2426"goflexnet") 
    25         ucidef_set_led_default "health" "health" "status:green:health" "1" 
    26         ucidef_set_led_default "fault" "fault" "status:orange:fault" "0" 
     27        ucidef_set_led_default "health" "health" "status:green:health" "1" 
     28        ucidef_set_led_default "fault" "fault" "status:orange:fault" "0" 
    2729        ;; 
    2830"ib62x0") 
     
    4547esac 
    4648 
    47 ucidef_commit_leds 
     49board_config_flush 
    4850 
    4951exit 0 
  • trunk/target/linux/kirkwood/base-files/etc/board.d/02_network

    r47732 r47733  
    11#!/bin/sh 
    22# 
    3 # Copyright (C) 2012-2014 OpenWrt.org 
     3# Copyright (C) 2012-2015 OpenWrt.org 
    44# 
    55 
     
    2121} 
    2222 
    23 . /lib/functions/uci-defaults.sh 
     23. /lib/functions/uci-defaults-new.sh 
    2424. /lib/kirkwood.sh 
    2525 
    26 board=$(kirkwood_board_name) 
     26board_config_update 
    2727 
    2828ucidef_set_interface_loopback 
     29 
     30board=$(kirkwood_board_name) 
    2931 
    3032case "$board" in 
     
    3638"nsa310s"|\ 
    3739"pogo_e02") 
    38         set_lan_dhcp "eth0" 
     40        ucidef_set_interface_lan "eth0" "dhcp" 
    3941        ;; 
    4042"linksys-audi") 
    41         ucidef_set_interfaces_lan_wan "eth0" "eth1" 
    42         ucidef_add_switch "switch0" "1" "1" 
    43         ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5" 
    44         ucidef_add_switch_vlan "switch0" "2" "4 6" 
     43        ucidef_add_switch "switch0" \ 
     44                "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1" 
    4545        ;; 
    4646"linksys-viper") 
    47         ucidef_set_interfaces_lan_wan "eth0" "eth1" 
    48         ucidef_add_switch "switch0" "1" "1" 
    49         ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5" 
    50         ucidef_add_switch_vlan "switch0" "2" "4 6" 
     47        ucidef_add_switch "switch0" \ 
     48                "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1" 
    5149        ;; 
    5250"guruplug-server-plus") 
    53         set_lan_dhcp "eth0" "eth1" 
     51        ucidef_set_interface_lan "eth0 eth1" "dhcp" 
    5452        ;; 
    5553"sheevaplug" | \ 
    5654"sheevaplug-esata") 
    57         set_lan_dhcp "eth0" 
     55        ucidef_set_interface_lan "eth0" "dhcp" 
    5856        ;; 
    5957*) 
    60         ucidef_set_interface_lan "eth0" 
     58        ucidef_set_interface_lan "eth0" "static" 
    6159        ;; 
    6260esac 
Note: See TracChangeset for help on using the changeset viewer.