summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorAndrew Thompson <andrew@clonedev.co.nz>2011-08-17 14:07:20 +1200
committerAndrew Thompson <andrew@clonedev.co.nz>2011-08-17 14:07:20 +1200
commita26d95383a6146734f67c9db21cd83534052843a (patch)
treeb1d1e008b6bd84f7c76d0e1b4d9a1d478347a9af /etc/inc/openvpn.inc
parent487830da860f9ba44c4daf83df2c5903400aaa53 (diff)
downloadpfsense-a26d95383a6146734f67c9db21cd83534052843a.zip
pfsense-a26d95383a6146734f67c9db21cd83534052843a.tar.gz
Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets the initial config. Most of the pfSense functionality will not work (pf rules, routing, etc) but it can be used for testing.
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 285a65f..5925ff2 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -701,6 +701,8 @@ function openvpn_resync($mode, $settings) {
function openvpn_resync_all($interface = "") {
global $g, $config;
+ if ($g['platform'] == 'jail')
+ return;
// delay our setup until the system
// has a chance to init our paths
if (!file_exists($g['varetc_path']."/openvpn") ||
@@ -980,4 +982,4 @@ function openvpn_refresh_crls() {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud