From 91224d9af0c277cce654048b03c47511abbe0b52 Mon Sep 17 00:00:00 2001 From: Matthew Grooms Date: Thu, 4 Sep 2008 19:29:35 +0000 Subject: Modify the ssh toggle script so it at least runs. I suspect its broken in a more subtle way however. Connected client don't appear to disconnect. --- etc/rc.initial.toggle_sshd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/rc.initial.toggle_sshd b/etc/rc.initial.toggle_sshd index f8a318c..d9d353c 100644 --- a/etc/rc.initial.toggle_sshd +++ b/etc/rc.initial.toggle_sshd @@ -29,8 +29,8 @@ POSSIBILITY OF SUCH DAMAGE. */ -require("functions.inc"); -require("config.inc"); +require_once("functions.inc"); +require_once("config.inc"); $fp = fopen('php://stdin', 'r'); @@ -44,7 +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") + exec("ps awux | grep '/usr/sbin/sshd' | grep -v grep | awk '{print $2}' | xargs kill"); } } else { -- cgit v1.1