Projet

Général

Profil

Télécharger (481 octets) Statistiques
| Branche: | Tag: | Révision:

univnautes / root / .shrc @ 992f60d0

1
HTTP_PROXY=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyurl)' /conf/config.xml`
2
if [ "${HTTP_PROXY}" != "" ]; then
3
	HTTP_PROXY_PORT=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyport)' /conf/config.xml`
4
	if [ "${HTTP_PROXY_PORT}" != "" ]; then
5
		HTTP_PROXY="${HTTP_PROXY}:${HTTP_PROXY_PORT}"
6
	fi
7
	export HTTP_PROXY
8
fi
9

    
10
# Detect interactive logins and display the shell
11
if [ -n "${SSH_TTY}" -o "${TERM}" = "cons25" ]; then
12
	/etc/rc.initial
13
	exit
14
fi
(4-4/5)