FrontPage 

Fuego wiki

Login or create account

function target reboot in split format

NAME [edit section]

= NAME =
target_reboot

SYNOPSIS [edit section]

= SYNOPSIS =
reboot the target, and wait for it to come back up

DESCRIPTION [edit section]

= DESCRIPTION =
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.
This function is called with a positional argument to indicate the number of retries to attempt.

EXAMPLES [edit section]

= EXAMPLES =
Here are some sample invocations:
{{{#!YellowBox
 target_reboot $MAX_REBOOT_RETRIES
}}}

ENVIRONMENT and ARGUMENTS [edit section]

= ENVIRONMENT and ARGUMENTS =
Positional argument $1 is used to indicate the number of retries to attempt.

RETURN [edit section]

= RETURN =
This function aborts the job if it the board cannot be contacted after the reboot.

SOURCE [edit section]

= SOURCE =
Located in ''scripts/functions.sh''

SEE ALSO [edit section]

ov_rootfs_reboot
= SEE ALSO =
 * [[function_ov_rootfs_reboot|ov_rootfs_reboot]]
TBWiki engine 1.8.3 by Tim Bird