From 2d3d39c156de440bf252064c89bedca6bafef7db Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 26 Sep 2024 12:04:05 -0600 Subject: [PATCH] Catch modprobe error --- docker/hailo8l/user_installation.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/hailo8l/user_installation.sh b/docker/hailo8l/user_installation.sh index 52e3eb95d..3c1f263b8 100644 --- a/docker/hailo8l/user_installation.sh +++ b/docker/hailo8l/user_installation.sh @@ -23,6 +23,13 @@ sudo make install # Load the Hailo PCI driver sudo modprobe hailo_pci +if [ $? -ne 0 ]; then + echo "Unable to load hailo_pci module, common reasons for this are:" + echo "- Key was rejected by service: Secure Boot is enabling disallowing install." + echo "- Permissions are not setup correctly." + exit 1 +fi + # Download and install the firmware cd ../../ ./download_firmware.sh