Revision 1bc783b6
Added by Cyrill B over 12 years ago
etc/inc/openvpn.inc | ||
---|---|---|
315 | 315 |
$devname = "ovpnc{$vpnid}"; |
316 | 316 |
|
317 | 317 |
/* is our device already configured */ |
318 |
if (mwexec("/sbin/ifconfig {$devname}")) { |
|
318 |
if (mwexec("/sbin/ifconfig {$devname}", true)) {
|
|
319 | 319 |
|
320 | 320 |
/* create the tap device if required */ |
321 | 321 |
if (!file_exists("/dev/{$tunname}")) |
Also available in: Unified diff
Update etc/inc/openvpn.inc
Mute error when interface does not exist, e.g. after reboot.