diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-09 21:08:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-09 21:08:07 +0000 |
commit | d896d60b07354b7eb14d2969d302fe9feb8110bf (patch) | |
tree | 9d62853c01e50dd7a3f4e0f3e28d5ca419f3b9b1 /packages/arpwatch.xml | |
parent | 8a92250d355ea4849ef88fdebaa3e5504e16bdf7 (diff) | |
download | pfsense-packages-d896d60b07354b7eb14d2969d302fe9feb8110bf.tar.gz pfsense-packages-d896d60b07354b7eb14d2969d302fe9feb8110bf.tar.bz2 pfsense-packages-d896d60b07354b7eb14d2969d302fe9feb8110bf.zip |
*CORRECTLY* define arpwatch interface.
Again, pointy-hat to non-package tester that created this package.
Diffstat (limited to 'packages/arpwatch.xml')
-rw-r--r-- | packages/arpwatch.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/arpwatch.xml b/packages/arpwatch.xml index f0faffd6..c38201aa 100644 --- a/packages/arpwatch.xml +++ b/packages/arpwatch.xml @@ -29,10 +29,15 @@ </custom_php_install_command> <custom_php_global_functions> function sync_package_arpwatch() { + global $config; conf_mount_rw(); config_lock(); + foreach($config['installedpackages']['arpwatch']['config'] as $arpw) { + $ints = $arpw['interface']; + } + if($ints == "") $ints = "lan"; global $config; - $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['arpwatch']['config']['interface']); + $int = convert_friendly_interface_to_real_interface_name($ints); $start = "/usr/local/sbin/arpwatch -d -i {$int} &"; $stop = "/usr/bin/killall arpwatch"; write_rcfile(array( |