Skip to content

Commit edf86cb

Browse files
authored
Activation: Add support for Ubuntu 24.04 & further Raspberry Pis (#143)
- Lists Ubuntu 24.04 as an approved version. - Changes the Raspberry Pi matching to support Raspberry Pi 5 and Raspberry Pi Compute Module 4/5.
1 parent f54314e commit edf86cb

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

website/public/car_activation.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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?

0 commit comments

Comments
 (0)