Project

General

Profile

« Previous | Next » 

Revision 1bc783b6

Added by Cyrill B over 12 years ago

Update etc/inc/openvpn.inc

Mute error when interface does not exist, e.g. after reboot.

View differences:

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