ksmbd-tools: Add a mDNS TXT record for the ksmbd service
authorKirill Nikolaev <redacted>
Mon, 5 Apr 2021 23:03:18 +0000 (01:03 +0200)
committerRosen Penev <redacted>
Wed, 7 Apr 2021 07:46:54 +0000 (00:46 -0700)
commit272b0a5c1873a34f6609e7af38395cea3f02bda5
treeb5bf239b6a2e35eb73afac5f3ea23c4b312ecb9b
parentfa6f182a21c597cd792bfe83fc68c9c5d0b196b3
ksmbd-tools: Add a mDNS TXT record for the ksmbd service

MacOS ignores Bonjour services for which TXT records are not returned. This changes forces umdns service to return a TXT record (`daemon=ksmbd`) for the ksmbd service. The exact content is unimportant and to the best of my knowledge nothing reads the `daemon` tag.

Symptoms of the problem (which are also debugging steps):
* Finder refuses to open the OpenWRT "computer" in the Network list.
* Discovery.app (Bonjour Browser) lists the _ssh._tcp service, but the submenu for it doesn't unfold and no address is shown.
* `dns-sd -L OpenWrt _smb._tcp` doesn't return any address.

Signed-off-by: Kirill Nikolaev <redacted>
net/ksmbd-tools/files/ksmbd.init
git clone https://git.99rst.org/PROJECT