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
"Restart")
ask "$opt2" "Are you sure?"
if [[ $answer == "Sim" ]]; then
if [[ $answer == "Yes" ]]; then
systemctl reboot
fi
exit 0
;;
"Shutdown")
ask "$opt2" "Are you sure?"
if [[ $answer == "Sim" ]]; then
if [[ $answer == "Yes" ]]; then
systemctl poweroff
fi
exit 0