aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-09 21:08:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-09 21:08:07 +0000
commitd896d60b07354b7eb14d2969d302fe9feb8110bf (patch)
tree9d62853c01e50dd7a3f4e0f3e28d5ca419f3b9b1 /packages
parent8a92250d355ea4849ef88fdebaa3e5504e16bdf7 (diff)
downloadpfsense-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')
-rw-r--r--packages/arpwatch.xml7
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} &amp;";
$stop = "/usr/bin/killall arpwatch";
write_rcfile(array(