mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=openssh
|
PKG_NAME:=openssh
|
||||||
PKG_VERSION:=7.5p1
|
PKG_VERSION:=7.5p1
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
|
PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
|
||||||
|
|||||||
@@ -20,7 +20,11 @@ start_service() {
|
|||||||
}; done
|
}; done
|
||||||
mkdir -m 0700 -p /var/empty
|
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_open_instance
|
||||||
|
procd_add_mdns "ssh" "tcp" "$lport"
|
||||||
procd_set_param command $PROG -D
|
procd_set_param command $PROG -D
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user