summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-01 23:12:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-01 23:12:07 +0000
commit668b7b2ea0618cdfd2382b290b709bed93feb2ab (patch)
treec5c19a79e6a2ea9e0699c6e8d732e72c31ab36e5 /etc
parent59d09874f9b55f761efa5418b36d0930a2cf57cd (diff)
downloadpfsense-668b7b2ea0618cdfd2382b290b709bed93feb2ab.zip
pfsense-668b7b2ea0618cdfd2382b290b709bed93feb2ab.tar.gz
Correctly start SSHD
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sshd8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index d4a2a85..3bac620 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -32,8 +32,12 @@
$stderr = fopen("php://stderr", "w");
- if(!isset($config['system']['enablesshd']))
- exit;
+ if(isset($config['system']['enablesshd'])) {
+ /* do nothing, we're enabled */
+ } else {
+ if($g['booting'])
+ echo "SSHD is disabled.";
+ }
function file_size($file) {
$size = filesize($file);
OpenPOWER on IntegriCloud