Simon Kelley | c72daea | 2012-01-05 21:33:27 +0000 | [diff] [blame] | 1 | #!/bin/sh |
2 | set -e | ||||
3 | |||||
4 | if [ 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 | ||||
12 | fi |