Changeset 47674


Ignore:
Timestamp:
2015-11-30T11:43:31+01:00 (2 years ago)
Author:
jow
Message:

mvebu: switch network and led config defaults to board detection framework

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

Location:
trunk/target/linux/mvebu/base-files/etc/board.d
Files:
1 added
1 copied
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mvebu/base-files/etc/board.d/01_leds

    • Property svn:executable set to *
    r47673 r47674  
    11#!/bin/sh 
    22# 
    3 # Copyright (C) 2014 OpenWrt.org 
     3# Copyright (C) 2014-2015 OpenWrt.org 
    44# 
    55 
    6 . /lib/functions/uci-defaults.sh 
     6. /lib/functions/uci-defaults-new.sh 
    77. /lib/mvebu.sh 
     8 
     9board_config_update 
    810 
    911board=$(mvebu_board_name) 
     
    3335esac 
    3436 
    35 ucidef_commit_leds 
     37board_config_flush 
    3638 
    3739exit 0 
  • trunk/target/linux/mvebu/base-files/etc/board.d/02_network

    • Property svn:executable set to *
    r47673 r47674  
    44# 
    55 
    6 [ -e /etc/config/network ] && exit 0 
     6. /lib/functions/uci-defaults-new.sh 
     7. /lib/mvebu.sh 
    78 
    8 touch /etc/config/network 
    9  
    10 . /lib/functions/uci-defaults.sh 
    11 . /lib/mvebu.sh 
     9board_config_update 
    1210 
    1311ucidef_set_interface_loopback 
     
    2826        ucidef_set_interfaces_lan_wan "eth0" "eth1" 
    2927        ucidef_add_switch "switch0" "1" "1" 
    30         ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5" 
    31         ucidef_add_switch_vlan "switch0" "2" "4 6" 
     28        ucidef_add_switch_ports "switch0" \ 
     29                "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth0" "4:wan" "6@eth1" 
    3230        ;; 
    3331armada-385-db-ap) 
     
    4240esac 
    4341 
    44 uci commit network 
     42board_config_flush 
    4543 
    4644exit 0 
Note: See TracChangeset for help on using the changeset viewer.