#!/bin/sh
# deb postinst / rpm %post (also run by install.sh)

udevadm control --reload 2>/dev/null
systemctl enable ioninja-avahi-init.service 2>/dev/null

[ -d /run/systemd/system ] || exit 0 # systemd not running (chroot, container)

systemctl daemon-reload
systemctl start ioninja-avahi-init.service # publish devices present now
exit 0
