platform.sh 387 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright (C) 2010-2015 OpenWrt.org
  3. #
  4. . /lib/imx6.sh
  5. platform_check_image() {
  6. local board=$(imx6_board_name)
  7. case "$board" in
  8. *gw5*)
  9. nand_do_platform_check $board $1
  10. return $?;
  11. ;;
  12. esac
  13. echo "Sysupgrade is not yet supported on $board."
  14. return 1
  15. }
  16. platform_pre_upgrade() {
  17. local board=$(imx6_board_name)
  18. case "$board" in
  19. *gw5*)
  20. nand_do_upgrade "$1"
  21. ;;
  22. esac
  23. }