apm821xx 723 B

12345678910111213141516171819202122232425262728293031
  1. [ -e /etc/config/ubootenv ] && exit 0
  2. touch /etc/config/ubootenv
  3. . /lib/uboot-envtools.sh
  4. . /lib/functions.sh
  5. board=$(board_name)
  6. case "$board" in
  7. meraki,mr24)
  8. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
  9. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "4"
  10. ;;
  11. meraki,mx60)
  12. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000" "4"
  13. ;;
  14. netgear,wndap620|\
  15. netgear,wndap660)
  16. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
  17. ;;
  18. wd,mybooklive)
  19. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000" "1"
  20. ubootenv_add_uci_config "/dev/mtd1" "0x1000" "0x1000" "0x1000" "1"
  21. ;;
  22. esac
  23. config_load ubootenv
  24. config_foreach ubootenv_add_app_config ubootenv
  25. exit 0