diff options
author | John Crispin <blogic@openwrt.org> | 2016-03-21 20:42:51 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-03-21 20:42:51 +0000 |
commit | dd4078c18b90befb896280c558ddcdb6f1f0c4d3 (patch) | |
tree | 3cbac2cef5edda4c282d2d5eff5d1673cae9e88c /target/linux/mediatek/base-files/etc | |
parent | 005a826a7dc2fed1dfdc6f918ecb391333ff99af (diff) | |
download | master-187ad058-dd4078c18b90befb896280c558ddcdb6f1f0c4d3.tar.gz master-187ad058-dd4078c18b90befb896280c558ddcdb6f1f0c4d3.tar.bz2 master-187ad058-dd4078c18b90befb896280c558ddcdb6f1f0c4d3.zip |
mediatek: bump to v4.4
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49064 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mediatek/base-files/etc')
-rwxr-xr-x | target/linux/mediatek/base-files/etc/board.d/02_network | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/mediatek/base-files/etc/board.d/02_network b/target/linux/mediatek/base-files/etc/board.d/02_network new file mode 100755 index 0000000000..93d3d1e435 --- /dev/null +++ b/target/linux/mediatek/base-files/etc/board.d/02_network @@ -0,0 +1,26 @@ +#!/bin/sh + +. /lib/functions.sh +. /lib/mediatek.sh +. /lib/functions/uci-defaults.sh +. /lib/functions/system.sh + +mediatek_setup_interfaces() +{ + local board="$1" + + case $board in + mt7623_evb) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" \ + "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth1" "6@eth0" + ;; + esac +} + +board_config_update +board=$(mediatek_board_name) +mediatek_setup_interfaces $board +board_config_flush + +exit 0 |