ramips 894 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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,quad-e4g|\
  14. alfa-network,r36m-e4g|\
  15. alfa-network,tube-e4g)
  16. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
  17. ;;
  18. allnet,all0256n-4m|\
  19. allnet,all0256n-8m|\
  20. allnet,all5002)
  21. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  22. ;;
  23. buffalo,wsr-1166dhp|\
  24. buffalo,wsr-600dhp|\
  25. mediatek,linkit-smart-7688|\
  26. samknows,whitebox-v8|\
  27. xiaomi,miwifi-nano|\
  28. zbtlink,zbt-wg2626)
  29. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
  30. ;;
  31. xiaomi,mir3p|\
  32. xiaomi,mir3g)
  33. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
  34. ;;
  35. esac
  36. config_load ubootenv
  37. config_foreach ubootenv_add_app_config ubootenv
  38. exit 0