You can plug your box in to your computer and get a code that automatically saves the new code so you dont have to change the codes everytime. Will update the site when i get the full details.
sorry to spoil your idea but the thing your talking about is called firmware and is already available.you can get it at the bottom of my post.