From bcfd3283b8a3300c30a81fbb2bcc5335b44318ad Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Fri, 14 Jun 2024 20:22:29 +0200 Subject: [PATCH] Adjust sleep duration and add reboot notification Extended sleep duration from 30 seconds to 40 seconds for stability. Updated reboot command to use full paths (/usr/sbin/grub-reboot 2 and /usr/sbin/reboot) for clarity and reliability. Added a curl command to send a notification indicating booting into Windows. Changes: - Increased sleep duration from 30s to 40s. - Updated reboot command to use full paths. - Added curl command to notify reboot to Windows. Commit: 4c8d07e --- autoboot_win.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autoboot_win.sh b/autoboot_win.sh index 5985c6e..4c8d07e 100644 --- a/autoboot_win.sh +++ b/autoboot_win.sh @@ -1,7 +1,11 @@ #!/bin/bash #sleep 30 sec -sleep 30s +sleep 40s # reboot to windows -grub-reboot 2 +echo "reboot" +/usr/sbin/grub-reboot 2 +/usr/sbin/reboot +curl -H "Priority:High" -d "Es wird zu Windows gebootet" -u "Michaelis:u5ptufUFuDL6q4yEcSN3iqas5gtXNkN77Lx3cy3oX8UoSgFWdifYy9FVopv2Zwtu" https://ntfy.michaelis.digital/hashkali +