#!/bin/bash set -e CONFFILE=/etc/wb-mqtt-serial.conf if [ "$1" = "purge" ]; then if which ucf >/dev/null; then ucf --purge $CONFFILE rm -f $CONFFILE rm -f $CONFFILE.simple rm -f $CONFFILE.default fi fi rm -f /usr/share/wb-mqtt-confed/schemas/wb-mqtt-serial.schema.json rm -f /var/lib/wb-mqtt-confed/schemas/wb-mqtt-serial.schema.json # Automatically added by dh_systemd_start/13.3.4 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_enable/13.3.4 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'wb-mqtt-serial.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'wb-mqtt-serial.service' >/dev/null || true deb-systemd-helper unmask 'wb-mqtt-serial.service' >/dev/null || true fi fi # End automatically added section