ar71xx 526 B

123456789101112131415161718192021222324252627282930313233
  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/ar71xx.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(ar71xx_board_name)
  11. case "$board" in
  12. all0258n | \
  13. cap4200ag)
  14. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  15. ;;
  16. alfa-ap96 | \
  17. all0315n | \
  18. om2p | \
  19. om2p-hs | \
  20. om2p-lc)
  21. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
  22. ;;
  23. esac
  24. config_load ubootenv
  25. config_foreach ubootenv_add_app_config ubootenv
  26. exit 0