mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add . for every second firmware update is running
This commit is contained in:
parent
03918ae182
commit
dfd6af96ce
@ -155,14 +155,16 @@ function check_for_kernel_file() {
|
||||
function do_upgrade($path, $type) {
|
||||
global $g;
|
||||
check_for_kernel_file();
|
||||
echo "\nOne moment please...\nInvoking firmware upgrade... ";
|
||||
echo "\nOne moment please...\nInvoking firmware upgrade...";
|
||||
if($type == "bdiff")
|
||||
mwexec_bg("/etc/rc.firmware delta_update $path");
|
||||
else
|
||||
mwexec_bg("/etc/rc.firmware pfSenseupgrade $path");
|
||||
sleep(10);
|
||||
while(file_exists("{$g['varrun_path']}/firmware.lock"))
|
||||
while(file_exists("{$g['varrun_path']}/firmware.lock")) {
|
||||
sleep(1);
|
||||
echo ".";
|
||||
}
|
||||
echo "Done. Rebooting...\n\n";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user