#!/bin/bash echo "=== $0" set -a . /etc/vdn/config set +a egrep -v 'http_proxy|https_proxy' /etc/bash.bashrc > /etc/.bash.bashrc mv /etc/.bash.bashrc /etc/bash.bashrc if [ "$SET_PROXY" = 1 ]; then echo "export http_proxy=\"$HTTP_PROXY\"" >> /etc/bash.bashrc echo "export https_proxy=\"$HTTP_PROXY\"" >> /etc/bash.bashrc fi