platform.sh 270 B

12345678910111213141516
  1. PART_NAME=linux
  2. platform_check_image() {
  3. [ "$ARGC" -gt 1 ] && return 1
  4. case "$(get_magic_word "$1")" in
  5. # .trx files
  6. 4844) return 0;;
  7. *)
  8. echo "Invalid image type. Please use only .trx files"
  9. return 1
  10. ;;
  11. esac
  12. }
  13. # use default for platform_do_upgrade()