1
0
mirror of https://github.com/Adam-Ant/dotfiles synced 2024-12-20 11:34:35 +00:00

Fix PowerMenu for Windows Boot

This commit is contained in:
Adam Dodman 2018-02-03 18:09:07 +00:00
parent aef712f9f4
commit 6099f3626f

View File

@ -8,7 +8,7 @@ case $option in
'Power Off') systemctl poweroff;;
Restart) systemctl reboot;;
Windows)
windows=`efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4`
windows=`efibootmgr | grep -Po -m1 'Boot\K(\w{4}).*Windows.*' | head -c4`
`sudo efibootmgr -n $windows`
reboot;;
esac