Add get_pfsync_interface_status($pfsyncinterface): returns the status of a pfsync

This commit is contained in:
Scott Ullrich 2005-02-19 00:05:29 +00:00
parent 591afdfd14
commit 167bcf84f2

View File

@ -149,6 +149,14 @@ function get_carp_interface_status($carpinterface) {
return $status;
}
/*
* get_pfsync_interface_status($pfsyncinterface): returns the status of a pfsync
*/
function get_pfsync_interface_status($pfsyncinterface) {
$status = exec_command("/sbin/ifconfig {$pfsyncinterface} | grep \"pfsync:\" | cut -d\" \" -f5");
return $status;
}
/*
* find_carp_interface($ip): return the carp interface where an ip is defined
*/