zax - customs - reconnect script
[anomen-kernel-config.git] / zax / customs / usr / local / bin / proxy-setup
blobd475305b84c579f261786c6aec91b8a38755f94c
1 #!/bin/sh
3 if ip addr | grep -q " 10.50."
4 then
5 P="http://localhost:3129"
6 echo export LOCATION=work
7 echo export http_proxy=$P
8 echo export https_proxy=$P
9 elif ip addr | grep -q " 172.17.2."
10 then
11 echo export LOCATION=home
12 echo unset http_proxy
13 echo unset https_proxy
14 echo export http_proxy
15 echo export https_proxy
17 else
18 echo export LOCATION=other
19 echo unset http_proxy
20 echo unset https_proxy
21 #echo export http_proxy
22 # echo export https_proxy