ramips 589 B

12345678910111213141516171819202122232425262728293031323334353637
  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/ramips.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(ramips_board_name)
  11. case "$board" in
  12. all0239-3g | \
  13. all0256n | \
  14. all5002)
  15. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  16. ;;
  17. linkits7688 | \
  18. linkits7688d | \
  19. wsr-600 | \
  20. wsr-1166 | \
  21. br6425 | \
  22. miwifi-nano | \
  23. sk-wb8 | \
  24. zbt-wg2626)
  25. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
  26. ;;
  27. esac
  28. config_load ubootenv
  29. config_foreach ubootenv_add_app_config ubootenv
  30. exit 0