oxnas 477 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright (C) 2013 OpenWrt.org
  3. #
  4. [ -e /etc/config/ubootenv ] && exit 0
  5. touch /etc/config/ubootenv
  6. . /lib/uboot-envtools.sh
  7. . /lib/functions.sh
  8. board=$(board_name)
  9. case "$board" in
  10. "cloudengines,pogoplug"*|\
  11. "shuttle,kd20")
  12. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x2000" "0x20000" "1"
  13. ;;
  14. "mitrastar,stg-212")
  15. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" "1"
  16. ;;
  17. esac
  18. config_load ubootenv
  19. config_foreach ubootenv_add_app_config ubootenv
  20. exit 0