diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-09-02 18:29:19 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-09-02 18:29:19 +0000 |
commit | 3cb54b54c0fbee25afdb3b4b3f87b50ead24c13c (patch) | |
tree | 8d191417457cec13b4f600d5c3e371d637fd3613 /etc | |
parent | 544156a7adb3177879041be663aae10992b791e8 (diff) | |
download | pfsense-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')
-rw-r--r-- | etc/inc/openvpn.inc | 6 |
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(); |