blob: 7eacce685c677311776678f45768ca6f5c5ba253 [file] [log] [blame]
Simon Kelleyc72daea2012-01-05 21:33:27 +00001#!/bin/sh
2set -e
3
4if [ purge = "$1" ]; then
5 update-rc.d dnsmasq remove >/dev/null
6 if [ -x "$(command -v deluser)" ]; then
7 deluser --quiet --system dnsmasq > /dev/null || true
8 else
9 echo >&2 "not removing dnsmasq system account because deluser command was not found"
10 fi
11 rm -rf /var/run/dnsmasq
12fi