ssh: Add umdns entry to the init script.

This is usefull for hosts to discover the ssh server, especially
on macOS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2017-08-14 23:58:12 -07:00
parent b6739d7e00
commit 6cb6666c97
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openssh
PKG_VERSION:=7.5p1
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \

View File

@ -20,7 +20,11 @@ start_service() {
}; done
mkdir -m 0700 -p /var/empty
local lport=`grep ^Port /etc/ssh/sshd_config | cut -d " " -f 2`
[ -z $lport ] && lport=22
procd_open_instance
procd_add_mdns "ssh" "tcp" "$lport"
procd_set_param command $PROG -D
procd_close_instance
}