44f2d8a0c271f61d027ecc4526030af4e909da5d
[openwrt/staging/jow.git] / package / boot / uboot-envtools / files / ipq807x
1 [ -e /etc/config/ubootenv ] && exit 0
2
3 touch /etc/config/ubootenv
4
5 . /lib/uboot-envtools.sh
6 . /lib/functions.sh
7
8 board=$(board_name)
9
10 case "$board" in
11 redmi,ax6|\
12 xiaomi,ax3600)
13 idx="$(find_mtd_index 0:appsblenv)"
14 [ -n "$idx" ] && \
15 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
16 idx2="$(find_mtd_index bdata)"
17 [ -n "$idx2" ] && \
18 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
19 ;;
20 esac
21
22 config_load ubootenv
23 config_foreach ubootenv_add_app_config
24
25 exit 0