#!/bin/sh
set -e

# dpkg can botch the change of /usr/share/doc/dnsmasq from
# directory to symlink. Fix up here.
if [ ! -h /usr/share/doc/dnsmasq ] && { rmdir /usr/share/doc/dnsmasq; }; then
   cd /usr/share/doc/
   ln -s /usr/share/doc/dnsmasq-base dnsmasq
fi

