File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -405,12 +405,14 @@ if [ $DISTRIB_RELEASE = "16.04" ]; then
405405 echo -e -n " \nPlease update your car to at least 20.04 -> https://docs.aws.amazon.com/deepracer/latest/developerguide/deepracer-ubuntu-update.html\n"
406406 exit 1
407407
408- elif [ $DISTRIB_RELEASE = " 20.04" ] || [ $DISTRIB_RELEASE = " 22.04" ]; then
409- echo -e -n " \n- Ubuntu 20.04 or 22.04 detected"
408+ elif [ $DISTRIB_RELEASE = " 20.04" ] || [ $DISTRIB_RELEASE = " 22.04" ] || [ $DISTRIB_RELEASE = " 24.04 " ] ; then
409+ echo -e -n " \n- Ubuntu $DISTRIB_RELEASE detected"
410410
411411 pythonPath=python3.8
412412 if [ $DISTRIB_RELEASE = " 22.04" ]; then
413413 pythonPath=python3.10
414+ elif [ $DISTRIB_RELEASE = " 24.04" ]; then
415+ pythonPath=python3.12
414416 fi
415417
416418 # Set some paths
@@ -430,11 +432,13 @@ elif [ $DISTRIB_RELEASE = "20.04" ] || [ $DISTRIB_RELEASE = "22.04" ]; then
430432 fi
431433
432434 # What are we running on?
433- hw=$( tr -d ' \0' < /proc/device-tree/model)
434- if [[ $hw == * " Raspberry Pi 4" * ]]; then
435- echo -e -n " \n- Raspberry Pi"
436- DEVICE=rpi
437- ARCH=arm64
435+ if [ -f /proc/device-tree/model ]; then
436+ hw=$( tr -d ' \0' < /proc/device-tree/model)
437+ if [[ $hw == * " Raspberry Pi" * ]]; then
438+ echo -e -n " \n- Raspberry Pi"
439+ DEVICE=rpi
440+ ARCH=arm64
441+ fi
438442 fi
439443
440444 # Are there community packages?
You can’t perform that action at this time.
0 commit comments