From c3e743502fefd1b522a126fdf03c25b60a33707c Mon Sep 17 00:00:00 2001 From: tripolar Date: Mon, 13 Dec 2010 18:39:14 +0000 Subject: [PATCH] [openssh] use the new shutdown function and kill all openssh sessions when the system goes down git-svn-id: svn://svn.openwrt.org/openwrt/packages@24549 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/openssh/files/sshd.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index ec76bb6ab..58b5ce720 100644 --- a/net/openssh/files/sshd.init +++ b/net/openssh/files/sshd.init @@ -23,3 +23,7 @@ start() { stop() { kill $(cat /var/run/sshd.pid) } + +shutdown() { + killall sshd +} -- 2.11.0