oxnas 461 B

123456789101112131415161718192021222324252627
  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/oxnas.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(oxnas_board_name)
  11. case "$board" in
  12. stg212 | \
  13. kd20)
  14. ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x4000" "0x1F000" "1"
  15. ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x4000" "0x1F000" "1"
  16. ;;
  17. esac
  18. config_load ubootenv
  19. config_foreach ubootenv_add_app_config ubootenv
  20. exit 0