mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
86dc811a7c
* autocore: remove ethinfo for mtk arm boards mediatek target uses legacy swconfig which is not supported by autocore. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> * mediatek: add support for Livinet ZR-3020 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> --------- Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
29 lines
488 B
Bash
29 lines
488 B
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2011-2012 OpenWrt.org
|
|
#
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
. /lib/uboot-envtools.sh
|
|
. /lib/functions.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
*360,t7* |\
|
|
livinet,zr-3020*)
|
|
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" "1"
|
|
;;
|
|
xiaomi,redmi-router-ax6000*)
|
|
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x10000" "0x20000" "1"
|
|
;;
|
|
esac
|
|
|
|
config_load ubootenv
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
exit 0
|