ath79 827 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. alfa-network,ap121f|\
  12. buffalo,bhr-4grv2|\
  13. engenius,ecb1750|\
  14. glinet,gl-ar300m-lite|\
  15. glinet,gl-ar300m-nand|\
  16. glinet,gl-ar300m-nor|\
  17. librerouter,librerouter-v1|\
  18. netgear,ex6400|\
  19. netgear,ex7300|\
  20. netgear,wnr2200-8m|\
  21. netgear,wnr2200-16m|\
  22. ocedo,koala|\
  23. ocedo,raccoon|\
  24. openmesh,om5p-ac-v2|\
  25. yuncore,a770)
  26. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  27. ;;
  28. buffalo,wzr-hp-ag300h)
  29. ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
  30. ;;
  31. qihoo,c301)
  32. ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
  33. ;;
  34. esac
  35. config_load ubootenv
  36. config_foreach ubootenv_add_app_config ubootenv
  37. exit 0