[openssh] use the new shutdown function and kill all openssh sessions when the system goes down
[openwrt.org/packages.git] / net / openssh / files / sshd.init
blob:a/net/openssh/files/sshd.init -> blob:b/net/openssh/files/sshd.init
--- a/net/openssh/files/sshd.init
+++ b/net/openssh/files/sshd.init
@@ -24,3 +24,7 @@
 	kill $(cat /var/run/sshd.pid)
 }
 
+shutdown() {
+	killall sshd
+}
+

comments