Skip to content

Commit

Permalink
installer: power down from menu #20
Browse files Browse the repository at this point in the history
Easy test target too.
  • Loading branch information
fichtner committed Jan 23, 2025
1 parent 7f24557 commit 063fc23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/opnsense.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ ${CHOICESZFS}\"Install (UFS)\" \"UFS GPT/UEFI Hybrid\" \
\"Other Modes >>\" \"Extended Installation\" \
\"Import Config\" \"Load Configuration\" \
\"Password Reset\" \"Recover Installation\" \
\"Force Reboot\" \"Reboot System\""
\"Force Reboot\" \"Reboot System\" \
\"Force Halt\" \"Power Down System\""

while :; do

Expand Down Expand Up @@ -329,6 +330,9 @@ case "${CHOICE}" in
"Force Reboot")
exit 0 # "this is fine"
;;
"Force Halt")
exit 42 # "bring a towel"
;;
*)
error "Unknown installer mode"
;;
Expand Down

0 comments on commit 063fc23

Please sign in to comment.