1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

i3/powermenu: fix rebooting when non-interactive

This commit is contained in:
Joe Groocock 2020-03-22 12:32:00 +00:00
parent 4b52c21ac9
commit 8e86599372
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -12,7 +12,7 @@ case $option in
windows)
windows=`efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4`
sudo efibootmgr -n $windows
sudo hibereboot;;
reboot;;
esac
exit 0