summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware_auto.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_firmware_auto.php')
-rwxr-xr-xusr/local/www/system_firmware_auto.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php
index 980aba3..4e11e4a 100755
--- a/usr/local/www/system_firmware_auto.php
+++ b/usr/local/www/system_firmware_auto.php
@@ -229,8 +229,12 @@ if($use_old_checkversion == false) {
exit;
} else {
touch("/tmp/auto_upgrade_in_progress");
- exec_rc_script_async("/etc/rc.firmware_auto {$firmwareurl} {$firmwarename} {$http_auth_username} {$http_auth_password}");
+ mwexec_bg("/etc/rc.firmware_auto \"{$firmwareurl}\" \"{$firmwarename}\" \"{$http_auth_username}\" \"{$http_auth_password}\"");
$update_status = "pfSense is now auto upgrading. The firewall will automatically reboot if it succeeds.";
+ update_status("pfSense is now upgrading. The firewall will reboot once the operation has completed.");
+ echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';\n</script>";
+ exit;
+
}
} elseif($versions == "") {
update_output_window("Using old checkversion method. You are running the latest version of pfSense.");
@@ -240,7 +244,7 @@ if($use_old_checkversion == false) {
update_output_window("Using old checkversion method. An unknown error occurred.");
}
}
-update_status("pfSense is now upgrading. The firewall will reboot once the operation has completed.");
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';\n</script>";
-?>
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud