case $MODE in
  configure)
    ARCH=${ARCH:-"$(dpkg --print-architecture)"}
    if [ -z "$option_dist_value" ] ; then
	option_dist_value=$(cat /etc/debian_version | cut -d'/' -f1)
	echo "info: Missing LTSP dist value, setting to $option_dist_value"
    fi

    # Make sure to inherit proxy setting from host, inspired by
    # ltsp-build-client/Debian/010-http-proxy in the ltsp-server
    # package.  See also bug #766460.
    if [ -z "$http_proxy" ]; then
	eval $(apt-config shell http_proxy acquire::http::proxy)
	[ "$http_proxy" = "false" ] && http_proxy=""
	export http_proxy
    fi
  ;;
esac
