#!/bin/sh
set -e

update-rc.d dnsmasq defaults 15 >/dev/null

if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/dnsmasq -a -d /usr/share/doc/dnsmasq ]; then
		ln -sf ../share/doc/dnsmasq /usr/doc/dnsmasq
	fi

        /etc/init.d/dnsmasq start

fi
