From bb76326d2028efc5dd3cd87e6288f342331a2a17 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 19 Apr 2005 22:58:15 +0000 Subject: * Use mwxec_bg * Surround parms with " --- usr/local/www/system_firmware_auto.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'usr/local/www/system_firmware_auto.php') 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"; + 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"; -?> + +?> \ No newline at end of file -- cgit v1.1