platform.sh 568 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (C) 2010 OpenWrt.org
  3. #
  4. . /lib/ppc40x.sh
  5. PART_NAME=firmware
  6. RAMFS_COPY_DATA=/lib/ppc40x.sh
  7. platform_check_image() {
  8. local board=$(ppc40x_board_name)
  9. local magic="$(get_magic_word "$1")"
  10. [ "$#" -gt 1 ] && return 1
  11. case "$board" in
  12. kilauea | openrb | magicbox)
  13. [ "$magic" != "2705" ] && {
  14. echo "Invalid image type."
  15. return 1
  16. }
  17. return 0
  18. ;;
  19. esac
  20. echo "Sysupgrade is not yet supported on $board."
  21. return 1
  22. }
  23. platform_do_upgrade() {
  24. local board=$(ppc40x_board_name)
  25. case "$board" in
  26. *)
  27. default_do_upgrade "$ARGV"
  28. ;;
  29. esac
  30. }