Revision dfd6af96
Added by Scott Ullrich over 16 years ago
etc/rc.initial.firmware_update | ||
---|---|---|
155 | 155 |
function do_upgrade($path, $type) { |
156 | 156 |
global $g; |
157 | 157 |
check_for_kernel_file(); |
158 |
echo "\nOne moment please...\nInvoking firmware upgrade... ";
|
|
158 |
echo "\nOne moment please...\nInvoking firmware upgrade..."; |
|
159 | 159 |
if($type == "bdiff") |
160 | 160 |
mwexec_bg("/etc/rc.firmware delta_update $path"); |
161 | 161 |
else |
162 | 162 |
mwexec_bg("/etc/rc.firmware pfSenseupgrade $path"); |
163 | 163 |
sleep(10); |
164 |
while(file_exists("{$g['varrun_path']}/firmware.lock"))
|
|
164 |
while(file_exists("{$g['varrun_path']}/firmware.lock")) {
|
|
165 | 165 |
sleep(1); |
166 |
echo "."; |
|
167 |
} |
|
166 | 168 |
echo "Done. Rebooting...\n\n"; |
167 | 169 |
} |
168 | 170 |
|
Also available in: Unified diff
Add . for every second firmware update is running