Commit Graph

22 Commits

Author SHA1 Message Date
Scott Ullrich
2850f1a0d0 Use $g['product_name'] 2009-01-20 15:07:00 -05:00
Scott Ullrich
01e415be21 Do not assume that we ship uniprocessor kernel on LiveCD any longer. 2008-06-17 01:07:41 +00:00
Scott Ullrich
0aeab9f19f Make sure $d_fwupenabled_path is defined since it is initially defined
in guiconfig.inc.   At some point in the future these variables should
be moved to globals.inc.
2008-01-12 22:43:45 +00:00
Scott Ullrich
4394fafc35 Automatically assume the embedded platform on update if the platform
is set to embedded or wrap.  We do not include any kernels outside
of embedded anyways for this paticular platform.
2008-01-11 18:00:37 +00:00
Scott Ullrich
2ebbc64270 * Do not allow the image to go read only during download / upgrade ops
* If a previous /root/firmware.tgz file exists before download, unlink
  the file to avoid a out of space error if the prior download operation
  happens to fail (or if / becomes rw again)
2008-01-11 17:53:14 +00:00
Scott Ullrich
9350a6429e Remove any previous MD5 sums after upgrade. 2007-11-07 23:09:38 +00:00
Scott Ullrich
ccc1091ade Exit immediately after firmware update operation completes. 2007-08-28 18:31:39 +00:00
Scott Ullrich
74fd3fa47c Add carriage return 2007-08-28 18:28:16 +00:00
Scott Ullrich
df6ec31bfc Make $fp global 2007-08-28 18:19:16 +00:00
Scott Ullrich
4ccb49746b Do not close STDIN until script is done processing. 2007-08-28 18:18:16 +00:00
Scott Ullrich
1fe14a9b12 Prompt for kernel type if it is not defined.
Ticket #1435
2007-08-28 18:16:04 +00:00
Scott Ullrich
5397d0ebad Close STDIN ($fp) handle before returning back to shell. Major doh's. 2007-06-02 22:05:43 +00:00
Scott Ullrich
ceab1c9199 Mount image read write before upgrading. 2007-05-11 03:23:59 +00:00
Scott Ullrich
7844b7c49c Mount read/write before fetching url. 2007-05-10 00:54:07 +00:00
Scott Ullrich
98a56ef7b8 Use unlink_if_exists() 2007-05-09 05:39:15 +00:00
Scott Ullrich
2582b366eb Unlink upgrade file on upgrade. 2007-05-09 05:35:01 +00:00
Scott Ullrich
e892ac9a63 Use /root/ as temporary storage. 2007-05-09 04:41:11 +00:00
Scott Ullrich
b55d122cc1 Fetch the filesize initially and compare it. In addition we compare MD5 to be absolutely sure. 2007-05-02 00:25:13 +00:00
Scott Ullrich
35870220b1 * Do not close a buffer that has failed * Automatically retry failed connection 2007-05-02 00:09:02 +00:00
Scott Ullrich
b65aeb25d1 Exit if URL or PATH is blank. 2007-05-01 22:26:20 +00:00
Scott Ullrich
b83c330bba Add md5 support if the site is storing the value. 2007-05-01 22:17:30 +00:00
Scott Ullrich
741fe28d9f Add firmware update menu option which can fetch a URL from the internet or use a already fetched file from the file system. 2007-05-01 21:57:13 +00:00