Add script for testing RP network connectivity
This commit is contained in:
parent
a5ba828b47
commit
e46781a776
13
rp_ping_test
Normal file
13
rp_ping_test
Normal file
@ -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."
|
Loading…
Reference in New Issue
Block a user