From 1e18cbff9aca0b475ab6485737f9ed27809fc156 Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Thu, 18 Jun 2020 14:43:52 -0700 Subject: [PATCH] Added check for connection to build download IP --- updateTest.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/updateTest.bash b/updateTest.bash index 49aae20c..8a6b601c 100755 --- a/updateTest.bash +++ b/updateTest.bash @@ -11,6 +11,19 @@ CTLH="/home/lanforge/Documents/connectTestHLog.txt" verNum="5.4.2" GUIDIR="${HL}/LANforgeGUI_${verNum}" ST="/tmp/summary.txt" +IP="192.168.95.239" + +find "${GUIDIR}/down-check" -mmin 60 | grep "down-check" +if [[ $? ]]; then + ping "-qc 4 ${IP}" + if [[ ! $? ]]; then + touch "${GUIDIR}/down-check" + echo "Could not connect to ${IP}" + exit 1 + else + rm "${GUIDIR}/down-check" + fi +fi rm -f /tmp/*.txt rm -f $GUILog $GUIUpdate $CTLGUI $CTLH $ST