diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-25 01:08:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-25 01:08:00 +0000 |
commit | d7e105065df0b19144a411ec59e699971867271c (patch) | |
tree | e694eec3e776e966061ae1a7495865e663a57cce /usr/local/www | |
parent | a262450f8132b2261f480cf5ee1c636bfe804548 (diff) | |
download | pfsense-d7e105065df0b19144a411ec59e699971867271c.zip pfsense-d7e105065df0b19144a411ec59e699971867271c.tar.gz |
Kill sshd if user has deactivated it.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_advanced.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index 20afb34..85a2420 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -109,6 +109,7 @@ if ($_POST) { touch("{$g['tmp_path']}/start_sshd"); } else { unset($config['system']['enablesshd']); + mwexec("/usr/bin/killall sshd"); } $oldsshport = $config['system']['ssh']['port']; $config['system']['ssh']['port'] = $_POST['sshport']; |