Skip to content

Commit

Permalink
Add "f" option for executing reboot force mode (#2482)
Browse files Browse the repository at this point in the history
- Why I did it
The vendor platform reboot, which is called from the reboot script, supports force mode, and for now there is no option to execute it via the reboot script, so this change will enable it.

- What I did
Add an "f" option in reboot_script for executing reboot force mode.
Add this option to help command as well.

- How to verify it
Execute the reboot script with "-f" and see that the vendor platform reboot executes the force mode indeed.
  • Loading branch information
Liran-Ar authored Nov 14, 2022
1 parent a5eb26b commit 611d8c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function show_help_and_exit()
echo " "
echo " Available options:"
echo " -h, -? : getting this help"
echo " -f : execute reboot force"

exit 0
}
Expand Down Expand Up @@ -171,7 +172,7 @@ function check_conflict_boot_in_fw_update()

function parse_options()
{
while getopts "h?v" opt; do
while getopts "h?vf" opt; do
case ${opt} in
h|\? )
show_help_and_exit
Expand Down

0 comments on commit 611d8c6

Please sign in to comment.