summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-01 17:23:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-01 17:23:02 +0000
commit999705416325df91682423b6eb415e15314d194d (patch)
treea6ce92b305dad268f1ed700560c8b69c93f97391 /etc
parentf3d370004fef246452be485f7cd998769ee5a4fc (diff)
downloadpfsense-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-xetc/rc.firmware_auto7
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
OpenPOWER on IntegriCloud