diff --git a/fpga/env.sh b/fpga/env.sh index 580e3bd..ac62ed5 100644 --- a/fpga/env.sh +++ b/fpga/env.sh @@ -29,7 +29,7 @@ function setup_meep() export PATH="$PATH:/apps/QDMA/meep-ionic/2022.1.4.4/linux-kernel/bin/" # Select the first FPGA in the node - local line=$(grep fpgan /etc/motd | head -1 | tr -d ' ') + local line=$(grep fpgan /etc/motd | sed -n 2p | tr -d ' ') export FPGACTL_PCIDEV=$(echo "$line" | awk -F'|' '{print $5}') export FPGACTL_SERIAL=$(echo "$line" | awk -F'|' '{print $4}') export FPGACTL_UART=$(echo "$line" | awk -F'|' '{print "/dev/"$7}')