IMHO it isn't work the effort for maybe a few times that one would want or need to update a motherboards BIOS. If something goes wrong with the script and the update is not successfull then you might be unable to boot your PC. If this happens you will need to replace the BIOS flash memory IC. Besides it only takes a few minutes to accomplish the task.
But yes you could probably do it. It would be possible to change the default boot order with a different lilo.conf file. Your partition would need to be a version of DOS. (DOSemu will not work) on a primary partition. A couple of MB, ie enough for the kernel image and BIOS image. The worst case would be if the BIOS update is a self extracting zip file. The batch file or some executable will need to run the file to extract the image, Figure out the image file name, run the BIOS flash utility. Hopefully you can enter the image file on the command line. Then you can use loadlin to reboot back to linux. To use loadlin you need to copy the kernel image i.e. vmlinuz or whatever to the DOS partition. When the system reboots you can rewrite the old lilo.conf file if necessary. You could use some file to detect which lilo.conf file is loaded.
Last edited by michaelk; 08-11-2004 at 05:19 PM.