0118-UpdateRootfs_sh_in_add_784.patch 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. diff --git a/UpdateRootfs.sh.in b/UpdateRootfs.sh.in
  2. index da6b7ea..19bece2 100644
  3. --- a/UpdateRootfs.sh.in
  4. +++ b/UpdateRootfs.sh.in
  5. @@ -405,6 +405,14 @@ else
  6. fi
  7. fi
  8. +if [ "$XRES" == "416" -a "$YRES" == "1280" ]; then
  9. +if [ "$BASEBOARD" == "DISPLAY002_784" ]; then
  10. + echo "4.7 x 7.5 Inch long Display 2"
  11. + sh /root/Display2To_784inch_rs485.sh
  12. + DONE=1
  13. +fi
  14. +fi
  15. +
  16. if [ "$DONE" == "0" ]; then
  17. echo "Unknown Display Resolution"
  18. fi
  19. @@ -419,6 +427,7 @@ echo "restart system !!!"
  20. sleep 2
  21. #-----------------
  22. reboot
  23. +exit 0
  24. fi
  25. fi
  26. #====================== DoRealUpdate ==== Ende =====
  27. @@ -975,6 +984,14 @@ else
  28. fi
  29. fi
  30. +if [ "\$XRES" == "416" -a "\$YRES" == "1280" ]; then
  31. +if [ "\$BASEBOARD" == "DISPLAY002_784" ]; then
  32. + echo "15 Inch Display 2"
  33. + cp \$EMMC_BOOTPATH/Display002_784_rs485.dtb \$EMMC_BOOTPATH/Display001.dtb
  34. + DONE=1
  35. +fi
  36. +fi
  37. +
  38. if [ "\$DONE" == "0" ]; then
  39. echo "Unknown Display Resolution"
  40. fi