Browse Source

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>
lilik-openwrt-22.03
Rosen Penev 7 years ago
parent
commit
6cb6666c97
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      net/openssh/Makefile
  2. +4
    -0
      net/openssh/files/sshd.init

+ 1
- 1
net/openssh/Makefile 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/ \


+ 4
- 0
net/openssh/files/sshd.init 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
}


Loading…
Cancel
Save