#!/bin/sh
set -e
# Upgrades preserve running sessions; removal stops only this package's controllers.
if [ "$1" = remove ] && [ -d /run/systemd/system ]; then
    systemctl stop 'goblin-radio-gui-*.service' || true
fi
