summaryrefslogtreecommitdiffstats
path: root/root/.shrc
diff options
context:
space:
mode:
Diffstat (limited to 'root/.shrc')
-rw-r--r--root/.shrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/root/.shrc b/root/.shrc
index 700597a..6f3c2fc 100644
--- a/root/.shrc
+++ b/root/.shrc
@@ -1,3 +1,12 @@
+HTTP_PROXY=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyurl)' /conf/config.xml`
+if [ "${HTTP_PROXY}" != "" ]; then
+ HTTP_PROXY_PORT=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyport)' /conf/config.xml`
+ if [ "${HTTP_PROXY_PORT}" != "" ]; then
+ HTTP_PROXY="${HTTP_PROXY}:${HTTP_PROXY_PORT}"
+ fi
+ export HTTP_PROXY
+fi
+
# Detect interactive logins and display the shell
if [ -n "${SSH_TTY}" -o "${TERM}" = "cons25" ]; then
/etc/rc.initial
OpenPOWER on IntegriCloud