ramips 589 B

1234567891011121314151617181920212223242526272829303132333435363738
  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-4M|\
  14. all0256n-8M|\
  15. all5002)
  16. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  17. ;;
  18. br-6425|\
  19. linkits7688|\
  20. linkits7688d|\
  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. esac
  29. config_load ubootenv
  30. config_foreach ubootenv_add_app_config ubootenv
  31. exit 0