This commit is contained in:
Stephan Raabe
2024-03-20 10:10:25 +01:00
parent 1a051b9e17
commit 4eaf9f7b53
7 changed files with 46 additions and 15 deletions
+17
View File
@@ -0,0 +1,17 @@
# ------------------------------------------------------
# Reboot
# ------------------------------------------------------
echo -e "${GREEN}"
figlet "Done"
echo -e "${NONE}"
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 ""