#!/bin/sh echo Reconfiguring NTLM-APS ... # sudo dpkg-reconfigure ntlmaps HTTP_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-$ echo if [ $? -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... fi else echo "http_proxy will not be changed. (currently http_proxy=$http_proxy)" fi