ath79 673 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011-2014 OpenWrt.org
  4. #
  5. [ -e /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/uboot-envtools.sh
  8. . /lib/functions.sh
  9. board=$(board_name)
  10. case "$board" in
  11. buffalo,wzr-hp-ag300h)
  12. ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
  13. ;;
  14. buffalo,bhr-4grv2|\
  15. engenius,ecb1750|\
  16. glinet,gl-ar300m-nand|\
  17. glinet,gl-ar300m-nor|\
  18. librerouter,librerouter-v1|\
  19. netgear,ex6400|\
  20. netgear,ex7300|\
  21. ocedo,koala|\
  22. ocedo,raccoon|\
  23. openmesh,om5p-ac-v2|\
  24. yuncore,a770)
  25. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  26. ;;
  27. esac
  28. config_load ubootenv
  29. config_foreach ubootenv_add_app_config ubootenv
  30. exit 0