ramips 726 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. all0239-3g|\
  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. mir3g)
  30. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
  31. ;;
  32. esac
  33. config_load ubootenv
  34. config_foreach ubootenv_add_app_config ubootenv
  35. exit 0