bf116d1fca0c9f1fc283b67724236c87bb1d81a0
[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 xiaomi,ax3600)
12 idx="$(find_mtd_index 0:appsblenv)"
13 [ -n "$idx" ] && \
14 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
15 idx2="$(find_mtd_index bdata)"
16 [ -n "$idx2" ] && \
17 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
18 ;;
19 esac
20
21 config_load ubootenv
22 config_foreach ubootenv_add_app_config
23
24 exit 0