I use sudo poweroff to turn off my system, sudo reboot to reboot it.
I want to change an external drive (in a duel docking bay), and if I turn it off mysql freaks out as the data dir is on the other drive (sucks that I cant eject just one drive!). So I would need to reboot anyhow. For mysql's sanity, I may as well shut down the computer, swap out the backup drive and then reboot it.
Of course, there is no power button on the pi, you have to unplug it and plug it back in (and my pi is going to be behind stuff). So I was wondering if there was some way of using the poweroff or shutdown command, to power off the system, and then turn it back on 2 mins later? That way I can make a desktop icon that will shut it down, I swap out the backup drive, and then a min or 2 later it will automatically reboot.
Any ideas?