mediatek_mt7629 449 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright (C) 2021 OpenWrt.org
  3. #
  4. [ -e /etc/config/ubootenv ] && exit 0
  5. touch /etc/config/ubootenv
  6. . /lib/uboot-envtools.sh
  7. . /lib/functions.sh
  8. board=$(board_name)
  9. case "$board" in
  10. iptime,a6004mx|\
  11. netgear,ex6250-v2)
  12. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000"
  13. ;;
  14. linksys,ea7500-v3)
  15. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
  16. ;;
  17. esac
  18. config_load ubootenv
  19. config_foreach ubootenv_add_app_config ubootenv
  20. exit 0