#!/bin/bash
#

set -e

## copy squid customization:
fcopy /etc/squid/conf.d/debian-lan.conf


if $ROOTCMD which dansguardian > /dev/null ; then
    PORT="8080"
else
    PORT="3128"
fi

cat > "$target/var/www/html/wpad.dat" <<EOF
function FindProxyForURL(url, host)
{
        return "PROXY webcache:$PORT; DIRECT";
}
EOF
