Skip to content

Commit 611d8c6

Browse files
authored
Add "f" option for executing reboot force mode (sonic-net#2482)
- 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.
1 parent a5eb26b commit 611d8c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/reboot

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ function show_help_and_exit()
121121
echo " "
122122
echo " Available options:"
123123
echo " -h, -? : getting this help"
124+
echo " -f : execute reboot force"
124125

125126
exit 0
126127
}
@@ -171,7 +172,7 @@ function check_conflict_boot_in_fw_update()
171172

172173
function parse_options()
173174
{
174-
while getopts "h?v" opt; do
175+
while getopts "h?vf" opt; do
175176
case ${opt} in
176177
h|\? )
177178
show_help_and_exit

0 commit comments

Comments
 (0)