aboutsummaryrefslogtreecommitdiff
path: root/net/openssh/Makefile
diff options
context:
space:
mode:
authorKyle Copperfield <kmcopper@danwin1210.me>2019-11-11 12:10:45 +0000
committerKyle Copperfield <kmcopper@danwin1210.me>2020-12-15 10:19:32 +0000
commit45863b94cad8969b6cb4f8afe5e6818a089d1c3c (patch)
treeae4e1572eeb6a8f542ba5deba7e616381b58ed46 /net/openssh/Makefile
parent2991c20c6129d5d9a66508571cdffd603f060032 (diff)
openssh: add openwrt failsafe support
Adds failsafe support to the openssh package. Roughly based on an earlier patch. Ref: https://github.com/openwrt/openwrt/pull/865 Signed-off-by: Jeff Kletsky <git-commits@allycomm.com> Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.me>
Diffstat (limited to 'net/openssh/Makefile')
-rw-r--r--net/openssh/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/openssh/Makefile b/net/openssh/Makefile
index 2a0863248..c93ae2794 100644
--- a/net/openssh/Makefile
+++ b/net/openssh/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openssh
PKG_VERSION:=8.4p1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
@@ -219,6 +219,8 @@ define Package/openssh-server/install
sed -r -i 's,^#(HostKey /etc/ssh/ssh_host_(rsa|ed25519)_key)$$$$,\1,' $(1)/etc/ssh/sshd_config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/sshd.init $(1)/etc/init.d/sshd
+ $(INSTALL_DIR) $(1)/lib/preinit
+ $(INSTALL_BIN) ./files/sshd.failsafe $(1)/lib/preinit/99_10_failsafe_sshd
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sshd $(1)/usr/sbin/
endef