What is so complex with upgrade ?
1.ask the router to download software from tftp /ftp server script 1
2.ask the router to add the new software script 2
3.ask the router to reboot script 3
4.ask the router to tell you what version it's running
but sometime something can stop working ...