Project

General

Profile

« Previous | Next » 

Revision 7d9eef10

Added by Ermal LUÇI over 15 years ago

Remove unused function.

View differences:

etc/inc/pfsense-utils.inc
1408 1408
	 return exec("sysctl hw.clockrate | awk '{ print $2 }'");
1409 1409
}
1410 1410

  
1411
/* check if the wan interface is up
1412
 * Wait for a maximum of 10 seconds
1413
 * If the interface is up before then continue
1414
 */
1415
function is_wan_interface_up($interface) {
1416
	global $g;
1417
	global $config;
1418
	$i = 0;
1419
	while($i < 10) {
1420
		if(get_interface_gateway($interface)) {
1421
			return true;
1422
		} else {
1423
			sleep(1);
1424
		}
1425
		$i++;
1426
	}
1427
	return false;
1428
}
1429

  
1430 1411
function add_hostname_to_watch($hostname) {
1431 1412
	if(!is_dir("/var/db/dnscache")) {
1432 1413
		mkdir("/var/db/dnscache");

Also available in: Unified diff