diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-30 04:24:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-30 04:24:23 +0000 |
commit | 2a5a9c6af4673693ee36f3898e4ba363171ebaef (patch) | |
tree | e8dab81b67536e7cd0dd538709c722c368af3a0f /etc/rc.initial.toggle_sshd | |
parent | fa58f9a07c8386fa9071e313669d54c391021736 (diff) | |
download | pfsense-2a5a9c6af4673693ee36f3898e4ba363171ebaef.zip pfsense-2a5a9c6af4673693ee36f3898e4ba363171ebaef.tar.gz |
* Output if SSH is enabled
* Kill SSH server but leave open ssh sessions
Diffstat (limited to 'etc/rc.initial.toggle_sshd')
-rw-r--r-- | etc/rc.initial.toggle_sshd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.initial.toggle_sshd b/etc/rc.initial.toggle_sshd index c086d94..f8a318c 100644 --- a/etc/rc.initial.toggle_sshd +++ b/etc/rc.initial.toggle_sshd @@ -44,6 +44,7 @@ if (isset($config['system']['enablesshd'])) { echo "\n\nDisabling SSHD..."; exec("/etc/sshd"); echo "\n"; + exec("ps awux | grep '/usr/sbin/sshd' | grep -v grep | awk '{print $2}' | xargs kill") } } else { |