summaryrefslogtreecommitdiff
path: root/debian/resolvconf-package
blob: a7512edced387f4b1228e9f86a7512b35d60ffdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Resolvconf packaging event hook script for the dnsmasq package
restart_dnsmasq() {
    if which invoke-rc.d >/dev/null 2>&1 ; then
        invoke-rc.d dnsmasq restart
    elif [ -x /etc/init.d/dnsmasq ] ; then
        /etc/init.d/dnsmasq restart
    fi
}

case "$1" in
  install) restart_dnsmasq ;;
esac