Browse Source

Merge pull request #4714 from neheb/master

ssh: Add umdns entry to the init script.
lilik-openwrt-22.03
tripolar 7 years ago
committed by GitHub
parent
commit
2f8327ec4b
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