Skip to content

Instantly share code, notes, and snippets.

@NoUsername
Created January 3, 2015 19:17
Show Gist options
  • Save NoUsername/c35bcfa81e7cae60a3bf to your computer and use it in GitHub Desktop.
Save NoUsername/c35bcfa81e7cae60a3bf to your computer and use it in GitHub Desktop.
GRUB2 boot file for windows (by exiting grub)
#!/bin/sh -e
echo "Adding Windows to GRUB 2 menu"
cat << EOF
menuentry "Windows" {
exit
}
EOF
## to activate this run:
## sudo grub-mkconfig -o /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment