Years ago I had a distribution which had the ability to let you reboot into a distro of your choice rather than have to sit and wait for the menu to come up and then choose the right one. I found this an incredible time saver, as I have many distros installed and reboot often. The ability to do this disappeared for some reason, but has been resurrected recently by Ubuntu with its 'reboot in' funciton. Unfortunately this function requires Unity quicklists which in turn requires Unity, and the 'scopes' in 13.10 are a step too far afaiac and I won't be using Unity again (I am using Lubuntu now btw). So I am trying to get the same sort of functionality into Mint/Lubuntu via a script.
The difficulty I am having is not the basic function - it would be this:
- Code: Select all
sudo grub-reboot X && sudo reboot
The difficulty is in defining 'X'. Where X is a number between 1 and 5 in my case (the number of entries in my grub menu).
What I want is a script that, when executed, would offer a dialog box to enter the required number before executing it.
Maybe that is easy, maybe it is impossible, I don't know, so I though I would ask.