summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-27 21:38:40 +0000
committerErmal <eri@pfsense.org>2013-12-27 21:38:40 +0000
commit9be0ec8a0e477a8f70184cdf19593aafe303819e (patch)
tree6d01c313fed37581ee5dceeab5b52c74cde80770
parent635c00d36d96ceee00301ae593985410061ec16e (diff)
downloadpfsense-9be0ec8a0e477a8f70184cdf19593aafe303819e.zip
pfsense-9be0ec8a0e477a8f70184cdf19593aafe303819e.tar.gz
Use the check properly!
-rwxr-xr-xetc/sshd8
1 files changed, 2 insertions, 6 deletions
diff --git a/etc/sshd b/etc/sshd
index c8e31d9..b75a67f 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -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 */
OpenPOWER on IntegriCloud