2
0

kirkwood 591 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/kirkwood.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(kirkwood_board_name)
  11. case "$board" in
  12. "dockstar" | \
  13. "guruplug-server-plus" | \
  14. "ib62x0" | \
  15. "linksys-viper" | \
  16. "pogo_e02" | \
  17. "sheevaplug" | \
  18. "sheevaplug-esata" )
  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