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:
parent
aef712f9f4
commit
6099f3626f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user