Skip to content

Commit 47c2299

Browse files
committed
Run port setup script forever
Being clever and running the set up script for only a short ammount of time after determining the ACC is up does not work, because when we first install the ACC, the ACC can recieve ICMP packets during iso boot. Instead, just run it forever. We could do this with a cronjob, however the IMC does not have crontab / cron functionality available by default. Signed-off-by: Salvatore Daniele <[email protected]>
1 parent b72a4d1 commit 47c2299

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ipu.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,8 @@ def _prepare_imc(self, server_with_key: str) -> None:
151151
if [ -f /work/scripts/ipu_port1_setup.sh ]; then
152152
ping -c 1 -W 2 192.168.0.2
153153
if [ $? -eq 0 ]; then
154-
count=0
155-
while [ $count -lt 20 ]; do
156-
/work/scripts/ipu_port1_setup.sh
157-
count=$((count + 1))
158-
sleep $count
159-
done
160-
break
154+
/work/scripts/ipu_port1_setup.sh
155+
sleep 1
161156
fi
162157
else
163158
break

0 commit comments

Comments
 (0)