oxnas 488 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013 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,pogoplug"* | \
  12. "shuttle,kd20")
  13. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x2000" "0x2000" "1"
  14. ;;
  15. "mitrastar,stg-212")
  16. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" "1"
  17. ;;
  18. esac
  19. config_load ubootenv
  20. config_foreach ubootenv_add_app_config ubootenv
  21. exit 0