Project

General

Profile

« Previous | Next » 

Revision a7edc0ad

Added by Ermal Luçi almost 16 years ago

Use the available function to avoid some errors.

View differences:

etc/inc/pfsense-utils.inc
1396 1396
	/* DHCP? -> see if dhclient is up */
1397 1397
	case "dhcp":
1398 1398
		/* see if dhclient is up */
1399
		if (is_dhcp_running($ifinfo['if']) == true)
1399
		if (find_dhclient_process($ifinfo['if']) == true)
1400 1400
			$ifinfo['dhcplink'] = "up";
1401 1401
		else
1402 1402
			$ifinfo['dhcplink'] = "down";
......
1404 1404
		break;
1405 1405
	case "carpdev-dhcp":
1406 1406
		/* see if dhclient is up */
1407
		if (is_dhcp_running($ifinfo['if']) == true)
1407
		if (find_dhclient_process($ifinfo['if']) == true)
1408 1408
			$ifinfo['dhcplink'] = "up";
1409 1409
		else
1410 1410
			$ifinfo['dhcplink'] = "down";
......
1666 1666
		return false;
1667 1667
}
1668 1668

  
1669
?>
1669
?>

Also available in: Unified diff