Don't try to autodetect http_proxy on HP-UX - it takes a looong time.
This commit is contained in:
parent
d9f46033ce
commit
be976991f5
17
.zprofile
17
.zprofile
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# $Id: .zprofile,v 1.18 2007-10-01 15:06:50 hjp Exp $
|
||||
# $Id: .zprofile,v 1.19 2007-10-09 11:49:11 hjp Exp $
|
||||
#
|
||||
# this is sourced for login shells after .zshenv but before .zshrc
|
||||
#
|
||||
|
@ -25,12 +25,17 @@ then
|
|||
export RGBDEF=/etc/X11/rgb.txt
|
||||
fi
|
||||
|
||||
unset http_proxy
|
||||
for i in http://zeno.hjp.at:3128/ http://squid.wsr.ac.at:3128/
|
||||
do
|
||||
if [ "`uname`" = HP-UX ]
|
||||
then
|
||||
export http_proxy=http://squid.wsr.ac.at:3128/
|
||||
else
|
||||
unset http_proxy
|
||||
for i in http://zeno.hjp.at:3128/ http://squid.wsr.ac.at:3128/
|
||||
do
|
||||
if http_proxy=$i wget -q -O /dev/null http://www.hjp.at
|
||||
then
|
||||
http_proxy=$i
|
||||
export http_proxy=$i
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue