blob: 98b10a4d1246166827fabd2aed3f91f859697e2c [file] [log] [blame]
Simon Kelleybc54ae32012-08-28 21:26:56 +01001#!/bin/sh
2set -e
3
4if [ 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 Kelley47901152015-09-29 22:54:41 +010010 rm -rf /run/dnsmasq
Simon Kelleybc54ae32012-08-28 21:26:56 +010011fi