mirror of
				https://github.com/Adam-Ant/dotfiles
				synced 2025-11-04 01:07:17 +00:00 
			
		
		
		
	Fix PowerMenu for Windows Boot
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user