Catch modprobe error

This commit is contained in:
Nicolas Mowen 2024-09-26 12:04:05 -06:00
parent 7822142673
commit 2d3d39c156

View File

@ -23,6 +23,13 @@ sudo make install
# Load the Hailo PCI driver # Load the Hailo PCI driver
sudo modprobe hailo_pci 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 # Download and install the firmware
cd ../../ cd ../../
./download_firmware.sh ./download_firmware.sh