From e46781a776c4d9603cf7b3b7cda366358c551cd0 Mon Sep 17 00:00:00 2001 From: Harry Ho Date: Thu, 13 May 2021 10:27:51 +0800 Subject: [PATCH] Add script for testing RP network connectivity --- rp_ping_test | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rp_ping_test diff --git a/rp_ping_test b/rp_ping_test new file mode 100644 index 0000000..3d06eb0 --- /dev/null +++ b/rp_ping_test @@ -0,0 +1,13 @@ +#!/bin/sh + +# RedPitaya hostname +export RP_HOST=rp-f0612e + +# Check if RedPitaya becomes connectable from network by pinging +while true +do + ping $RP_HOST -c 1 >/dev/null 2>/dev/null && break +done +# Print time when RedPitaya ready on network +TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') +echo "RP becomes connectable at $TIMESTAMP_PRETTY."