This commit is contained in:
pbentes
2025-05-05 17:21:48 +01:00
parent 89bfe634b3
commit eaa22765df

View File

@ -16,14 +16,14 @@ ask "$opt1" "$first_prompt"
case $answer in case $answer in
"Restart") "Restart")
ask "$opt2" "Are you sure?" ask "$opt2" "Are you sure?"
if [[ $answer == "Sim" ]]; then if [[ $answer == "Yes" ]]; then
systemctl reboot systemctl reboot
fi fi
exit 0 exit 0
;; ;;
"Shutdown") "Shutdown")
ask "$opt2" "Are you sure?" ask "$opt2" "Are you sure?"
if [[ $answer == "Sim" ]]; then if [[ $answer == "Yes" ]]; then
systemctl poweroff systemctl poweroff
fi fi
exit 0 exit 0