Revision 60b7af16
Added by Scott Ullrich over 17 years ago
etc/rc.initial.firmware_update | ||
---|---|---|
44 | 44 |
$status = does_url_exist($url); |
45 | 45 |
if($status) { |
46 | 46 |
conf_mount_rw(); |
47 |
touch($d_fwupenabled_path); |
|
48 |
if(file_exists("/root/firmware.tgz")) |
|
49 |
unlink("/root/firmware.tgz"); |
|
47 | 50 |
echo "\nFetching file size...\n"; |
48 | 51 |
$file_size = exec("fetch -s \"$url\""); |
49 | 52 |
$file_size = trim($file_size, "\r"); |
... | ... | |
98 | 101 |
die; |
99 | 102 |
} |
100 | 103 |
if(file_exists($path)) { |
104 |
touch($d_fwupenabled_path); |
|
101 | 105 |
do_upgrade($path); |
102 | 106 |
} else { |
103 | 107 |
echo "\nCould not find file.\n\n"; |
Also available in: Unified diff
the file to avoid a out of space error if the prior download operation
happens to fail (or if / becomes rw again)