feat(dbus): Add avahi-daemon configuration to system services
Introduce a `configure_avahi_daemon` function to manage the avahi-daemon service and socket with proper post actions. Update the interface configuration to enable avahi management using the new function.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
from collections import namedtuple
|
||||
from logging import getLogger
|
||||
|
||||
from .revpi_config import ConfigActions, configure_gui, simple_systemd
|
||||
from .revpi_config import ConfigActions, configure_avahi_daemon, configure_gui, simple_systemd
|
||||
from ..dbus_helper import DbusInterface
|
||||
|
||||
log = getLogger(__name__)
|
||||
@@ -85,6 +85,6 @@ AVAILABLE_FEATURES = {
|
||||
"revpipyload": FeatureFunction(simple_systemd, ["revpipyload.service"]),
|
||||
"bluetooth": False,
|
||||
"ieee80211": False,
|
||||
"avahi": False,
|
||||
"avahi": FeatureFunction(configure_avahi_daemon, []),
|
||||
"external-antenna": False,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user