function target reboot
reboot the target, and wait for it to come back up
This function is used to reboot the target board. It calls ov_rootfs_reboot, and then loops doing 'cmd "true"'. It sleeps 1 second for each interation of the loop.
This function is called with a positional argument to indicate the number of retries to attempt.
Here are some sample invocations:
Positional argument $1 is used to indicate the number of retries to attempt.
This function aborts the job if it the board cannot be contacted after the reboot.
Located in scripts/functions.sh