Skip to content
Snippets Groups Projects
Commit e3fc1147 authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

avahi: Add HDC service file for DNS-SD/mDNS discovery


To discover the targets IP address and HDC service running on
it we offer a avahi service file.

An example command on the host to discover it would be:
avahi-browse _workstation._tcp --terminate -r

Signed-off-by: default avatarStefan Schmidt <stefan.schmidt@huawei.com>
parent 45a5440b
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">OpenHarmony Device Connector on %h</name>
<service>
<type>_workstation._tcp</type>
<port>35000</port>
</service>
</service-group>
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: MIT
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append = "file://hdc.service"
do_install:append () {
install -d ${D}${sysconfdir}/avahi/services/
install -m 0644 -g avahi ${WORKDIR}/hdc.service ${D}${sysconfdir}/avahi/services/hdc.service
}
......@@ -13,3 +13,6 @@ IMAGE_INSTALL += "openharmony-standard"
# Let's be friendly enough to provide a fully working interactive shell
IMAGE_INSTALL += "bash"
# Provide avahi and a DNS-SD service file to discover the HDC service
IMAGE_INSTALL += "avahi-daemon"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment