kirkwood 564 B

123456789101112131415161718192021222324252627282930313233
  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/kirkwood.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(kirkwood_board_name)
  11. case "$board" in
  12. "ea3500")
  13. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x20000"
  14. ;;
  15. "ea4500" | \
  16. "guruplug-server-plus" | \
  17. "ib62x0" | \
  18. "pogo_e02" | \
  19. "sheevaplug" | \
  20. "sheevaplug-esata" )
  21. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  22. ;;
  23. esac
  24. config_load ubootenv
  25. config_foreach ubootenv_add_app_config ubootenv
  26. exit 0