Conversation
|
NOTE: Needs testing, but conceptually this is good. Will update ticket(s) with test results. |
tsoome
left a comment
There was a problem hiding this comment.
You can do like this:
shutdown=""
in case statement
s) shutdown=yes;;
and then
if [[ $shutdown ]]; then
poweroff
else
reboot
fi
Might be just a bit easier to read (less chars to process;)
Even better might be to just set a variable to the desired last-command! |
|
This may need to account for a shutdown rather than a reboot also.. usage nit
|
|
Moving this back to draft to cleave out 8578 as its own, lower-impact, PR, namely #1112 |
OS-8578 Add "-s" option to sdc-factoryreset to poweroff CN instead of reboot