2
0

mvebu 681 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2014-2016 OpenWrt.org
  4. # Copyright (C) 2016 LEDE-Project.org
  5. #
  6. [ -e /etc/config/ubootenv ] && exit 0
  7. touch /etc/config/ubootenv
  8. . /lib/mvebu.sh
  9. . /lib/uboot-envtools.sh
  10. . /lib/functions.sh
  11. board=$(mvebu_board_name)
  12. case "$board" in
  13. armada-385-linksys-caiman|\
  14. armada-385-linksys-cobra|\
  15. armada-385-linksys-shelby)
  16. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
  17. ;;
  18. armada-385-linksys-rango)
  19. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  20. ;;
  21. armada-xp-linksys-mamba)
  22. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
  23. ;;
  24. esac
  25. config_load ubootenv
  26. config_foreach ubootenv_add_app_config ubootenv
  27. exit 0