kirkwood 553 B

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