diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-18 21:39:47 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-18 21:39:47 +0000 |
commit | d99f01eaf5099862f1123149c90273acbb36764b (patch) | |
tree | a10e5a7d705d1cdfc1616fe2b5cbb864a9813da5 /etc | |
parent | e9c9b77e3dba57548cc797614e4583f44d7f9c47 (diff) | |
download | pfsense-d99f01eaf5099862f1123149c90273acbb36764b.zip pfsense-d99f01eaf5099862f1123149c90273acbb36764b.tar.gz |
Remove auto_update(). This is now handled by system_firmware_auto.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 81b367b..30a4fd2 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -829,44 +829,6 @@ function make_dirs($path, $mode = 0755) return is_dir($path) || (make_dirs(dirname($path), $mode) && safe_mkdir($path, $mode)); } -/****f* pfsense-utils/auto_upgrade - * NAME - * auto_upgrade - pfSense autoupdate handler. - * FUNCTION - * Begin the pfSense autoupdate process. This function calls check_firmware_version to get - * a list of current versions and then loops through them, applying binary diffs etc. - * RESULT - * null - * BUGS - * This function needs to have logic in place to automatically switch over to full updates - * if a certain amount of binary diffs do not apply successfully. - * SEE ALSO - * pfsense.utils/check_firmware_version - ******/ -function auto_upgrade() { - global $config, $g; - if (isset($config['system']['alt_firmware_url']['enabled'])) { - $firmwareurl=$config['system']['alt_firmware_url']['firmware_base_url']; - $firmwarepath=$config['system']['alt_firmware_url']['firmware_filename']; - } else { - $firmwareurl=$g['firmwarebaseurl']; - $firmwarepath=$g['firmwarefilename']; - } - if($config['system']['proxy_auth_username'] <> "") - $http_auth_username = $config['system']['proxy_auth_username']; - if($config['system']['proxy_auth_password'] <> "") - $http_auth_password = $config['system']['proxy_auth_password']; - if (isset($config['system']['alt_firmware_url']['enabled'])) { - $firmwareurl=$config['system']['alt_firmware_url']['firmware_base_url']; - $firmwarename=$config['system']['alt_firmware_url']['firmware_filename']; - } else { - $firmwareurl=$g['firmwarebaseurl']; - $firmwarename=$g['firmwarefilename']; - } - exec_rc_script_async("/etc/rc.firmware_auto {$firmwareurl} {$firmwarename} {$http_auth_username} {$http_auth_password}"); - return; -} - /* * check_firmware_version(): Check whether the current firmware installed is the most recently released. */ |