summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorMatthew Grooms <mgrooms@pfsense.org>2008-09-02 18:29:19 +0000
committerMatthew Grooms <mgrooms@pfsense.org>2008-09-02 18:29:19 +0000
commit3cb54b54c0fbee25afdb3b4b3f87b50ead24c13c (patch)
tree8d191417457cec13b4f600d5c3e371d637fd3613 /etc/inc/openvpn.inc
parent544156a7adb3177879041be663aae10992b791e8 (diff)
downloadpfsense-3cb54b54c0fbee25afdb3b4b3f87b50ead24c13c.zip
pfsense-3cb54b54c0fbee25afdb3b4b3f87b50ead24c13c.tar.gz
Delay writing out the dh-parameters file if the paths have not yet been
initialized by the rc scripts. I hope this will make the initial boot process more pleasant during install. If not, I will revert this commit.
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 7740a3a..adccc4f 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -518,6 +518,12 @@ function openvpn_resync($mode, & $settings) {
function openvpn_resync_all() {
global $g, $config;
+ // delay our setup until the system
+ // has a chance to init our paths
+ if (!file_exists($g['varetc_path']."/openvpn") ||
+ !file_exists($g['varetc_path']."/openvpn-csc"))
+ return;
+
if (!is_array($config['openvpn']))
$config['openvpn'] = array();
OpenPOWER on IntegriCloud