ramips 713 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011-2012 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,ac1200rm|\
  12. alfa-network,awusfree1)
  13. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
  14. ;;
  15. all0256n-4M|\
  16. all0256n-8M|\
  17. all5002)
  18. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  19. ;;
  20. linkits7688|\
  21. miwifi-nano|\
  22. sk-wb8|\
  23. wsr-1166|\
  24. wsr-600|\
  25. zbt-wg2626)
  26. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
  27. ;;
  28. mir3g)
  29. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
  30. ;;
  31. esac
  32. config_load ubootenv
  33. config_foreach ubootenv_add_app_config ubootenv
  34. exit 0