-
-
Save fingul/d3b2e1d22d91c62f4ff6c540dd1181b3 to your computer and use it in GitHub Desktop.
Revisions
-
mmdemirbas revised this gist
Oct 8, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # @author: [email protected] filename=/etc/default/grub # Replace GRUB_DEFAULT value to 'saved' -
mmdemirbas created this gist
Oct 8, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ filename=/etc/default/grub # Replace GRUB_DEFAULT value to 'saved' echo :: Setting GRUB_DEFAULT=saved sudo sed -i 's/GRUB_DEFAULT=.*/GRUB_DEFAULT=saved/g' $filename # Append GRUB_SAVEDEFAULT=true after deleting old GRUB_SAVEDEFAULT's echo :: Setting GRUB_SAVEDEFAULT=true sudo sed -i '/GRUB_SAVEDEFAULT=.*/d' $filename sudo sed -i '$aGRUB_SAVEDEFAULT=true' $filename # Update config echo :: Calling update-grub sudo update-grub