kirkwood 712 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2012-2014 OpenWrt.org
  3. #
  4. [ -e /etc/config/ubootenv ] && exit 0
  5. touch /etc/config/ubootenv
  6. . /lib/uboot-envtools.sh
  7. . /lib/functions.sh
  8. board=$(board_name)
  9. case "$board" in
  10. checkpoint,l-50|\
  11. cloudengines,pogoe02|\
  12. cloudengines,pogoplugv4|\
  13. dlink,dns320l|\
  14. globalscale,sheevaplug|\
  15. iom,ix2-200|\
  16. iom,ix4-200d|\
  17. linksys,e4200-v2|\
  18. linksys,ea4500|\
  19. netgear,readynas-duo-v2|\
  20. raidsonic,ib-nas62x0|\
  21. seagate,dockstar|\
  22. zyxel,nsa310b|\
  23. zyxel,nsa310s|\
  24. zyxel,nsa325)
  25. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  26. ;;
  27. linksys,ea3500)
  28. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
  29. ;;
  30. esac
  31. config_load ubootenv
  32. config_foreach ubootenv_add_app_config ubootenv
  33. exit 0