diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-11 16:27:50 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-01-14 13:34:34 +0100 |
commit | e845c094d5c9d6afbb1ab3f0815d6ed546b9d429 (patch) | |
tree | eb78d9d5f7c998bdf855b78b30d68fee37715a01 /target/linux/mediatek/base-files/etc | |
parent | c6e972c8772a628a1a2f2e5590d7c6f4acef9ab0 (diff) | |
download | upstream-e845c094d5c9d6afbb1ab3f0815d6ed546b9d429.tar.gz upstream-e845c094d5c9d6afbb1ab3f0815d6ed546b9d429.tar.bz2 upstream-e845c094d5c9d6afbb1ab3f0815d6ed546b9d429.zip |
mediatek: split base-files into subtargets
This splits some base-files across subtargets, as done previously
on ath79 and ramips and also introduced for mt7629 subtarget here
already. Most of the existing base-files content is specific to
mt7623.
While at it, apply the following fixes:
- Remove lots of trailing whitespaces
- Remove wildcard on unielec,u7623-02-emmc-512m
- Remove inconsistent quotation marks in cases
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/base-files/etc')
-rwxr-xr-x | target/linux/mediatek/base-files/etc/board.d/02_network | 41 |
1 files changed, 0 insertions, 41 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 deleted file mode 100755 index faa2434241..0000000000 --- a/target/linux/mediatek/base-files/etc/board.d/02_network +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -. /lib/functions.sh -. /lib/functions/uci-defaults.sh -. /lib/functions/system.sh - -mediatek_setup_interfaces() -{ - local board="$1" - - case $board in - 'mediatek,mt7623a-rfb-emmc') - ucidef_set_interface_lan "lan0 lan1 lan2 lan3" - ucidef_set_interface_wan eth1 - ;; - 'bananapi,bpi-r2'|\ - "unielec,u7623"*) - ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "wan" - ;; - esac -} - -mediatek_setup_macs() -{ - local board="$1" - - case $board in - "unielec,u7623"*) - mac=$(cat /sys/class/net/wan/address) - ucidef_set_interface_macaddr "wan" $mac - ;; - esac -} - -board_config_update -board=$(board_name) -mediatek_setup_interfaces $board -mediatek_setup_macs $board -board_config_flush - -exit 0 |