diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-01 17:23:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-01 17:23:02 +0000 |
commit | 999705416325df91682423b6eb415e15314d194d (patch) | |
tree | a6ce92b305dad268f1ed700560c8b69c93f97391 /etc | |
parent | f3d370004fef246452be485f7cd998769ee5a4fc (diff) | |
download | pfsense-999705416325df91682423b6eb415e15314d194d.zip pfsense-999705416325df91682423b6eb415e15314d194d.tar.gz |
Add proxy_auth_username and proxy_auth_password system tags which will control the auto upgrade process if a proxy server is involved.
Currently this is a hidden variable (similar to the way m0n0wall functions) but will have a GUI written if there is enough demand.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.firmware_auto | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto index 567ed57..7ef1830 100755 --- a/etc/rc.firmware_auto +++ b/etc/rc.firmware_auto @@ -5,6 +5,13 @@ sleep 5 logger -p daemon.info -i -t AutoUpgrade "Auto Upgrade started" +HTTP_AUTH="" + +# if username and password is passed, let fetch utilize. +if [ $# -gt 1 ]; then +HTTP_AUTH="basic:*:$1:$2" +fi + echo "Downloading latest.tgz ..." | logger -p daemon.info -i -t AutoUpgrade cd /tmp && fetch http://www.pfSense.com/latest.tgz | logger -p daemon.info -i -t AutoUpgrade echo "Downloading latest.tgz.md5 ..." | logger -p daemon.info -i -t AutoUpgrade |