From 698faba0a140a84d69940157cfa3a03ff3781526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Billet?= Date: Wed, 26 Nov 2025 22:39:41 +0100 Subject: [PATCH] Added missing exports. --- deploy.sh | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/deploy.sh b/deploy.sh index 1c55d62..a4ccee6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -93,41 +93,37 @@ ssh_to_host() { } hardware_detection() { - echo -e "\n\n 🔎 Detecting graphics card on target host..." VGA_INFO=$(ssh_to_host "lspci -nn | grep -i 'vga'") if echo "$VGA_INFO" | grep -iq "intel" 2>/dev/null; then echo -e " ✅ Intel graphics card detected." - TARGET_GRAPHICS="true" + export TARGET_GRAPHICS="true" elif echo "$VGA_INFO" | grep -iq "amd" 2>/dev/null; then echo -e " ✅ AMD graphics card detected." - TARGET_GRAPHICS="true" + export TARGET_GRAPHICS="true" elif echo "$VGA_INFO" | grep -iq "nvidia" 2>/dev/null; then echo -e " ✅ NVIDIA graphics card detected." - TARGET_GRAPHICS="true" + export TARGET_GRAPHICS="true" else echo -e " ⚠️ No dedicated graphics card detected." - TARGET_GRAPHICS="false" + export TARGET_GRAPHICS="false" fi - echo -e "\n\n 🔎 Detecting transconding acceleration on target host..." if ssh_to_host "ls /dev/dri/renderD300" 2>/dev/null; then echo -e " ✅ Transcoding capable card detected." - TARGET_GRAPHICS_RENDERER="true" + export TARGET_GRAPHICS_RENDERER="true" else echo -e " ⚠️ No transcoding capable card detected." - TARGET_GRAPHICS_RENDERER="false" + export TARGET_GRAPHICS_RENDERER="false" fi - echo -e "\n\n 🔎 Detecting USB Google Coral TPU on target host..." if ssh_to_host "lsusb | grep -iq 'google'" 2>/dev/null; then - echo -e " ✅ USB Google Coral TPU detected." - TARGET_USB_CORAL="true" + echo -e " ✅ USB Google Coral TPU detected." + export TARGET_USB_CORAL="true" else - echo -e " ⚠️ No USB Google Coral TPU detected." - TARGET_USB_CORAL="false" + echo -e " ⚠️ No USB Google Coral TPU detected." + export TARGET_USB_CORAL="false" fi - echo -e "\n\n 🔎 Detecting Zigbee coordinator on target host..." if ssh_to_host "ls /dev/serial/by-id/ | grep -i 'zigbee'" 2>/dev/null; then echo -e " ✅ Zigbee device found in /dev/serial/by-id/." - TARGET_ZIGBEE_DEVICE=$(ssh_to_host "ls /dev/serial/by-id/ | grep -i 'zigbee'") + export TARGET_ZIGBEE_DEVICE=$(ssh_to_host "ls /dev/serial/by-id/ | grep -i 'zigbee'") else echo -e " ⚠️ No Zigbee device found." fi