#!/bin/sh
set -eu

if command -v systemctl >/dev/null 2>&1; then
    systemctl daemon-reload || true
fi

if [ "${1:-}" = "purge" ]; then
    rm -f /var/lib/remotedesk/pairing.json
fi

exit 0
