Simon Kelley | bc54ae3 | 2012-08-28 21:26:56 +0100 | [diff] [blame] | 1 | #!/bin/sh |
2 | set -e | ||||
3 | |||||
4 | if [ purge = "$1" ]; then | ||||
5 | if [ -x "$(command -v deluser)" ]; then | ||||
6 | deluser --quiet --system dnsmasq > /dev/null || true | ||||
7 | else | ||||
8 | echo >&2 "not removing dnsmasq system account because deluser command was not found" | ||||
9 | fi | ||||
Simon Kelley | 4790115 | 2015-09-29 22:54:41 +0100 | [diff] [blame] | 10 | rm -rf /run/dnsmasq |
Simon Kelley | bc54ae3 | 2012-08-28 21:26:56 +0100 | [diff] [blame] | 11 | fi |