kirkwood 576 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. "guruplug-server-plus" | \
  13. "ib62x0" | \
  14. "linksys-viper" | \
  15. "pogo_e02" | \
  16. "sheevaplug" | \
  17. "sheevaplug-esata" )
  18. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  19. ;;
  20. "linksys-audi")
  21. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
  22. ;;
  23. esac
  24. config_load ubootenv
  25. config_foreach ubootenv_add_app_config ubootenv
  26. exit 0