ramips 759 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. alfa-network,tube-e4g)
  14. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
  15. ;;
  16. all0256n-4M|\
  17. all0256n-8M|\
  18. all5002)
  19. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  20. ;;
  21. linkits7688|\
  22. miwifi-nano|\
  23. sk-wb8|\
  24. wsr-1166|\
  25. wsr-600|\
  26. zbt-wg2626)
  27. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
  28. ;;
  29. xiaomi,mir3p|\
  30. xiaomi,mir3g)
  31. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
  32. ;;
  33. esac
  34. config_load ubootenv
  35. config_foreach ubootenv_add_app_config ubootenv
  36. exit 0