19 lines
435 B
Bash
Raw Normal View History

2024-03-20 10:10:25 +01:00
# ------------------------------------------------------
# Reboot
# ------------------------------------------------------
echo -e "${GREEN}"
2024-03-20 12:59:44 +01:00
figlet "Reboot"
2024-03-20 10:10:25 +01:00
echo -e "${NONE}"
2024-03-20 12:59:44 +01:00
echo "A reboot of your system is recommended."
2024-03-20 10:10:25 +01:00
if gum confirm "Do you want to reboot your system now?" ;then
echo ":: Rebooting now ..."
sleep 3
systemctl reboot
elif [ $? -eq 130 ]; then
exit 130
else
echo ":: Reboot skipped"
fi
echo ""