Created
April 26, 2018 14:00
-
-
Save 2m/7eab6837af147bdcc90133dea3eef048 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reboot() { | |
case "$1" in | |
"fw") | |
sudo systemctl reboot --firmware-setup | |
;; | |
"win") | |
sudo efibootmgr -n $(efibootmgr | grep Win | cut -d\* -f1 | cut -d0 -f4) && systemctl reboot | |
;; | |
*) | |
systemctl reboot | |
;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment