diff options
author | Ermal <eri@pfsense.org> | 2013-12-27 21:38:40 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-27 21:38:40 +0000 |
commit | 9be0ec8a0e477a8f70184cdf19593aafe303819e (patch) | |
tree | 6d01c313fed37581ee5dceeab5b52c74cde80770 /etc/sshd | |
parent | 635c00d36d96ceee00301ae593985410061ec16e (diff) | |
download | pfsense-9be0ec8a0e477a8f70184cdf19593aafe303819e.zip pfsense-9be0ec8a0e477a8f70184cdf19593aafe303819e.tar.gz |
Use the check properly!
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -34,12 +34,8 @@ require_once("functions.inc"); require_once("shaper.inc"); - if(isset($config['system']['enablesshd'])) { - /* do nothing, we're enabled */ - } else { - if($g['booting']) - echo "SSHD is disabled."; - exit; + if !(isset($config['system']['enablesshd'])) { + return; } /* are we already running? if not, do conf_mount_rw(), otherwise it should already be rw */ |