As i already wrote if you remount read only a reboot -f -n does the job nicely.
You can't really switch the root filesystem while you are fully running on it, but with single used mode and a read only mount the IO stops (and a ready only mount triggers also a sync), so you can write the flashfiles it while still running. But then you have to reboot instantly and without any filesystem flush to prevent corruption, but this is feasable. But is would not spend too much time on the scripts as I wrote above a single static binary would be better, believe me.
PS: For me it is not a few hours work, because i did all the work for my nfwrite binary already, it is ess the 1h to add the image and box detection
Edited by gutemine, 11 May 2013 - 09:44.