From 7eccacc07885298c0b285370ada14a372fb655f3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 16 Jul 2024 01:05:06 +0200 Subject: [PATCH] Automatically reboot the machine --- scripts/Common/OS/setup.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Common/OS/setup.fish b/scripts/Common/OS/setup.fish index eb4d2666..c4d50dfa 100644 --- a/scripts/Common/OS/setup.fish +++ b/scripts/Common/OS/setup.fish @@ -39,5 +39,8 @@ begin end | chroot "$mountDir" tee /root/.bash_profile > /dev/null and echo "Setup finished!" - and echo "Please reboot your machine" + and echo "This machine will reboot in 5 seconds..." + and echo "Press CTRL-C to abort..." + and sleep 5 + and systemctl reboot end