I have Fedora 23 and Windows 7 installed on a system. The system used to boot to windows 7 by default. To add Hibernate option to Fedora 23, I executed following code
#!/bin/bash
# Enable hibernation
# Using info from:
#
https://psohny.wordpress.com/2015/08/13/fedora_hiber/
# Enable recovery in the /etc/default/grub
sed -i -e 's|^\(GRUB_DISABLE_RECOVERY="\)true"|\1false"|' /etc/default/grub
#Find the swapdevice
SWAPDEVICE=`grep -e '^[^#].*swap' /etc/fstab | head -n 1 | cut -d ' ' -f 1`
echo "Using SWAPDEVICE=${SWAPDEVICE} for hibernation"
#add "resume=swapdevice" to the GRUB_CMDLINE_LINUX=
sed -i -e "s|^\(GRUB_CMDLINE_LINUX=".*\)"|\1 resume=${SWAPDEVICE}"|" /etc/default/grub
#Regenerate the grub config
/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
and rebooted the system.
This however
changed my default boot to fedora and also added two more boot options (both for fedora).
How can I change the default boot to windows again?