summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-18 21:45:09 +0000
committerErmal <eri@pfsense.org>2013-12-18 21:45:09 +0000
commit78c3673302e1af74f6e25ba96badd713a7d227e1 (patch)
tree841187cb49bc1a9e8f8d116b7f3d59bed2b834e0 /etc/inc/openvpn.inc
parente677dd06781872f63bc23b113af0bb5e9d8e49e1 (diff)
downloadpfsense-78c3673302e1af74f6e25ba96badd713a7d227e1.zip
pfsense-78c3673302e1af74f6e25ba96badd713a7d227e1.tar.gz
Use does_interface_exist rather than calling ifconfig directly
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index da4f5ce..3e04318 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -416,7 +416,7 @@ function openvpn_reconfigure($mode, $settings) {
$devname = "ovpnc{$vpnid}";
/* is our device already configured */
- if (mwexec("/sbin/ifconfig {$devname}", true)) {
+ if (does_interface_exist($devname)) {
/* create the tap device if required */
if (!file_exists("/dev/{$tunname}"))
OpenPOWER on IntegriCloud