summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-19 22:58:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-19 22:58:15 +0000
commitbb76326d2028efc5dd3cd87e6288f342331a2a17 (patch)
treec71187d3437a7d82edb44cca6f4d8705fc9ffe6b /usr/local/www
parent6aada4eda1e074cbb9ca78b9d1127e3e1123e037 (diff)
downloadpfsense-bb76326d2028efc5dd3cd87e6288f342331a2a17.zip
pfsense-bb76326d2028efc5dd3cd87e6288f342331a2a17.tar.gz
* Use mwxec_bg
* Surround parms with "
Diffstat (limited to 'usr/local/www')
-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