CRITICALLY IMPORTANT NEVER EVER EVER INTERRUPT POWER IN A FLASH. WAIT AND THE ROUTER WILL RESTART AFTER THE FLASH
Upgrading Firmware Wirelessly (why in general you shouldn't do it/how to minimize its risk)
Before doing any of the upgrades it is recommended to do a 'long reset' of your WRT54G. You can do this by holding the reset button down for 10-15 seconds until the device reboots. This will reset everything to defaults.
Reference:
http://www.sveasoft.com/modules/phpBB2/viewtopic.php?t=956
Web Upgrade
OR/ TFTP1
After Updating
Here is an alternate guide to upgrading put together by digiblur, including configuration of the bandwidth management features in Satori:
http://members.cox.net/wrt54g/
1 What is Tftp? Tftp is the client tool used to upload the firmware. You will also need to use a special version of tftp that has an embedded Linksys password Found
Here.
2 How does Bootwait work? Boot Wait simply lenghtens the amount of time the linksys router waits to see if it should upload any new firmware from about 1/2 a second to roughly 2 seconds.
3 Resetting to factory defaults both before and after an upgrade is the best way to verify you have a clean start. With out following this step you may run in to corrupt settings, and other weird behavoir.
4 Unplugging the router is not required all the time, but it is a good step to verify all your settings have applied and you're running in a clean state. (to avoid the "no firewall" situation described here:
http://www.sveasoft.com/postt491.html).
Upgrading Firmware Wirelessly (why in general you shouldn't do it/how to minimize its risk):
Wireless is less reliable than wired, hence more likely to have a problem like a disconnect, lost transfer, etc. due to interference, driver issues, the phase of the moon, the Ketchup Advisory Board, etc. If that happens you may have to start the
firmware recovery procedures, and if you can avoid needing to do a recovery, that's all the better.
That said, if you have a remotely controlable PC at the site where the WRT54G is located, and that PC is wired to the WRT54G, I don't see why you couldn't use that PC via remote control over the wireless to perform an upgrade. This way you aren't at risk for a wireless disconnect as the actual firmware transfer would be going from the PC wired to the WRT54G.
Now how to remotely reset the NVRAM to factory defaults via the 'reset' button after flashing is another issue, but hopefully the reset method via menu outlined above will work.
Reference:
http://sveasoft.cyberemail.org/forum/viewtopic.php?t=83