From: Peter Wagner <​tripolar@gmx.at> Date: Mon, 13 Dec 2010 18:39:14 +0000 (+0000) Subject: [openssh] use the new shutdown function and kill all openssh sessions when the system... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fd345bf5c79f48fce52c1d8c7b72731b08772e1b;p=openwrt%2Fsvn-archive%2Farchive.git [openssh] use the new shutdown function and kill all openssh sessions when the system goes down SVN-Revision: 24549 --- diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index ec76bb6ab5..58b5ce7206 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 +}