#!/bin/sh

# For automated installs, create /etc/default/pump before installation

if [ ! -f "/etc/default/pump" ]; then
	echo "Note: pump will change /etc/resolv.conf when run"
	echo "  to change this in /etc/pump.conf, see manpage"
	echo "  for more info (next version will be debconf enabled)"
	echo
	echo "  For pcmcia cards set PUMP=y in /etc/pcmcia/network.opts"
	echo
	echo "Which interface(s) do you want to run pump on?"
	echo "(give a list seperated by spaces, do not include"
	echo " pcmcia cards)"
	echo -n "> "
	read REPLY
	echo "Writing IFACES=\"$REPLY\" to /etc/default/pump"
	echo "IFACES=\"$REPLY\"" >/etc/default/pump
fi


# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/pump -a -d /usr/share/doc/pump ]; then
		ln -sf ../share/doc/pump /usr/doc/pump
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d pump start 40 S . >/dev/null
if [ "$1" = "configure" ]; then
	if [ -z "$2" -o "$2" = "<unknown>" ]; then
		/etc/init.d/pump start
	fi
fi
# End automatically added section

