All pastes #15136 Raw Edit

Someone

public shellscript v1 · immutable
#15136 ·published 2005-06-20 20:59 UTC
rendered paste body
#!/bin/shecho Reconfiguring NTLM-APS ...# sudo dpkg-reconfigure ntlmapsHTTP_PROXY=$(whiptail --title 'Set http_proxy Environment Variable' --radiolist 'Set or Clear http_proxy variable' 0 76 0 'Set' "http_proxy to point to NTLM-$echoif [ $? -eq 0 ]; then  if [ "$HTTP_PROXY" == "Set" ]; then    echo Setting http_proxy to http://localhost:$(sudo grep LISTEN_PORT /etc/ntlmaps/server.cfg|cut -d' ' -f2)    export http_proxy=http://localhost:$(sudo grep LISTEN_PORT /etc/ntlmaps/server.cfg|cut -d' ' -f2)  else    echo clearing value for http_proxy...  fielse  echo "http_proxy will not be changed. (currently http_proxy=$http_proxy)"fi