kirkwood 584 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2012-2014 OpenWrt.org
  4. #
  5. [ -e /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/uboot-envtools.sh
  8. . /lib/functions.sh
  9. board=$(board_name)
  10. case "$board" in
  11. cloudengines,pogoe02|\
  12. cloudengines,pogoplugv4|\
  13. iom,ix2-200|\
  14. linksys,viper|\
  15. raidsonic,ib-nas62x0|\
  16. seagate,dockstar|\
  17. zyxel,nsa310b|\
  18. zyxel,nsa325)
  19. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  20. ;;
  21. linksys,audi)
  22. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
  23. ;;
  24. esac
  25. config_load ubootenv
  26. config_foreach ubootenv_add_app_config ubootenv
  27. exit 0