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
This commit is contained in:
Ratatoskr 2024-06-14 20:22:29 +02:00
parent 85d046ce8c
commit bcfd3283b8

View File

@ -1,7 +1,11 @@
#!/bin/bash #!/bin/bash
#sleep 30 sec #sleep 30 sec
sleep 30s sleep 40s
# reboot to windows # 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