1
0
Fork 0
junos-testing-framework/flash.sh

20 lines
269 B
Bash
Executable file

#!/usr/bin/env bash
SSH_OPTS="-o StrictHostKeychecking=no"
ssh $SSH_OPTS root@192.168.42.6 "cli request system zeroize"
echo "sleeping for 10"
sleep 10
./serve.sh &
while true;
do
if ping -w 1 -c 1 192.168.42.6 > /dev/null then
break
fi
done
echo "finished"