ath79 654 B

123456789101112131415161718192021222324252627282930313233343536
  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. glinet,gl-ar300m-nand|\
  16. glinet,gl-ar300m-nor|\
  17. librerouter,librerouter-v1|\
  18. netgear,ex6400|\
  19. netgear,ex7300|\
  20. ocedo,koala|\
  21. ocedo,raccoon|\
  22. openmesh,om5p-ac-v2|\
  23. yuncore,a770)
  24. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  25. ;;
  26. esac
  27. config_load ubootenv
  28. config_foreach ubootenv_add_app_config ubootenv
  29. exit 0