diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-18 02:24:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-18 02:24:33 +0000 |
commit | cc76d4591c5769100a95f203560cd4f4708f02bb (patch) | |
tree | 0a63f920c744ad40c731e1720a2d90504ca3757f /etc/inc/captiveportal.inc | |
parent | 3a66b6211b8d06e494fb4ac73da5d59eacd4529d (diff) | |
download | pfsense-cc76d4591c5769100a95f203560cd4f4708f02bb.zip pfsense-cc76d4591c5769100a95f203560cd4f4708f02bb.tar.gz |
Minor nit-picks
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index e668cd5..96bd68a 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -150,11 +150,7 @@ EOD; mwexec("/sbin/sysctl net.link.ether.ipfw=1"); chdir($g['captiveportal_path']); - - /* start web server */ - // mwexec("/usr/local/sbin/mini_httpd -a -M 0 -u root -maxproc 16" . - // " -p 8000 -i {$g['varrun_path']}/mini_httpd.cp.pid"); - + $cert = ""; $key = ""; if (isset($config['captiveportal']['httpslogin']) && @@ -171,16 +167,14 @@ EOD; fwrite($fd, "\n"); fwrite($fd, $key); fclose($fd); - - } /* generate lighttpd configuration */ system_generate_lighty_config("{$g['varetc_path']}/lighty-CaptivePortal.conf", $key, $cert, "lighty-CaptivePortal.pid", "8000", "/usr/local/captiveportal/", - "cert-portal.pem"); + "cert-portal.pem"); - /* attempt to start lighthttpd */ + /* attempt to start lighttpd */ $res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-CaptivePortal.conf"); /* generate passthru mac database */ |