From: tripolar 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://207.154.207.93/?a=commitdiff_plain;h=c3e743502fefd1b522a126fdf03c25b60a33707c;p=packages.git [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 --- 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 +}