1
0
mirror of https://github.com/Adam-Ant/dotfiles synced 2024-10-05 04:23:53 +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;; 'Power Off') systemctl poweroff;;
Restart) systemctl reboot;; Restart) systemctl reboot;;
Windows) 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` `sudo efibootmgr -n $windows`
reboot;; reboot;;
esac esac