From f2bbd4847333b05b340716fcf1c22dc99819c123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schl=C3=BCter?= Date: Wed, 28 Feb 2018 11:53:59 +0100 Subject: Add new /usr/share/debian-edu-config/wpad-extract script and install with itzks-systems-common. --- share/debian-edu-config/tools/wpad-extract | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 share/debian-edu-config/tools/wpad-extract (limited to 'share/debian-edu-config') diff --git a/share/debian-edu-config/tools/wpad-extract b/share/debian-edu-config/tools/wpad-extract new file mode 100755 index 0000000..57eca70 --- /dev/null +++ b/share/debian-edu-config/tools/wpad-extract @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Detect proxy URL via WPAD +# +# Author: Wolfgang Schweer +# License: GNU General Public License v2 or later + +# This version uses pactester from package libpacparser1. + +# Look up one of the www.debian.org IP addresses to avoid hanging on +# DNS if the skolelinux machines are not connected to the Internet. +proxy_url=$(curl -s http://wpad/wpad.dat | pactester -p - \ + -u http://130.89.148.14 | awk '{print $2}' | cut -d';' -f1) +echo http_proxy=http://$proxy_url -- cgit v1.2.3