summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-12 17:52:29 +0000
committerBill Marquette <billm@pfsense.org>2005-03-12 17:52:29 +0000
commitf1b025971b4e7749c9a9b7c75b21daa63e80c013 (patch)
tree0160c42934611576b3b35ed38121eb5b81aaa5ca /usr/local
parentdc1c55041b99f66efec8a29e07b5104d9ec3a042 (diff)
downloadpfsense-f1b025971b4e7749c9a9b7c75b21daa63e80c013.zip
pfsense-f1b025971b4e7749c9a9b7c75b21daa63e80c013.tar.gz
Stub in changes that will allow for custom firmware URLs
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system_firmware.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index f51d7f8..f6326dd 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -81,7 +81,12 @@ if($_POST) {
$http_auth_username = $config['system']['proxy_auth_username'];
if($config['system']['proxy_auth_password'])
$http_auth_password = $config['system']['proxy_auth_password'];
- exec_rc_script_async("/etc/rc.firmware_auto {$http_auth_username} {$http_auth_password}");
+
+ /* stub in custom firmware option */
+ $firmwareurl=$g['firmwarebaseurl'];
+ $firmwarename=$g['firmwarefilename'];
+
+ exec_rc_script_async("/etc/rc.firmware_auto {$firmwareurl} {$firmwarename} {$http_auth_username} {$http_auth_password}");
$savemsg = "pfSense is now auto upgrading. The firewall will automatically reboot if it succeeds.";
}
}
OpenPOWER on IntegriCloud