#!/bin/sh

# (C) 2013-2026 by Christian Hesse <mail@eworm.de>
#                  Markus Weippert <markus@gekmihesg.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

PORT="$(grep -E '^PORT=' /etc/pacserve.conf | cut -d= -f2 | tr -d '[:space:]')"

exec avahi-publish -s "pacserve on %l" "_pacserve._tcp" "${PORT}" "id=arch" "arch=x86_64"
