procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / mediatek_mt7623
1 #
2 # Copyright (C) 2021 OpenWrt.org
3 #
4
5 [ -e /etc/config/ubootenv ] && exit 0
6
7 touch /etc/config/ubootenv
8
9 . /lib/uboot-envtools.sh
10 . /lib/functions.sh
11
12 board=$(board_name)
13
14 case "$board" in
15 bananapi,bpi-r2)
16 . /lib/upgrade/common.sh
17 export_bootdevice
18 export_partdevice ubootpart 1
19 ubootenv_add_uci_config "/dev/$ubootpart" "0xb0000" "0x10000" "0x10000" "1"
20 ;;
21 unielec,u7623-02)
22 ubootenv_add_uci_config "/dev/mmcblk0p1" "0xc0000" "0x10000" "0x10000" "1"
23 ;;
24 esac
25
26 config_load ubootenv
27 config_foreach ubootenv_add_app_config ubootenv
28
29 exit 0