mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add get_pfsync_interface_status($pfsyncinterface): returns the status of a pfsync
This commit is contained in:
parent
591afdfd14
commit
167bcf84f2
@ -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
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user