diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 00:05:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 00:05:29 +0000 |
commit | 167bcf84f2f6fd499deb76b6977a257e1157f2f2 (patch) | |
tree | b494ba37e64007a23c261669070a08e8472edcf7 /etc/inc/pfsense-utils.inc | |
parent | 591afdfd148acc9011d99d914c0fc53adab7240f (diff) | |
download | pfsense-167bcf84f2f6fd499deb76b6977a257e1157f2f2.zip pfsense-167bcf84f2f6fd499deb76b6977a257e1157f2f2.tar.gz |
Add get_pfsync_interface_status($pfsyncinterface): returns the status of a pfsync
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d11db25..6e5e321 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -150,6 +150,14 @@ function get_carp_interface_status($carpinterface) { } /* + * 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 */ function find_carp_interface($ip) { |