summaryrefslogtreecommitdiffstats
path: root/root/.shrc
blob: 6f3c2fc5c44b5dfc7196fe000da1584105f2ec9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
	exit
fi
OpenPOWER on IntegriCloud