aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-09 21:28:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-09 21:28:10 +0000
commitd93842336c8809ffa429bdd08e66169bdefaab59 (patch)
tree7f220bbb32c97aa77d262d6eac762eab4f623abc /packages
parentd896d60b07354b7eb14d2969d302fe9feb8110bf (diff)
downloadpfsense-packages-d93842336c8809ffa429bdd08e66169bdefaab59.tar.gz
pfsense-packages-d93842336c8809ffa429bdd08e66169bdefaab59.tar.bz2
pfsense-packages-d93842336c8809ffa429bdd08e66169bdefaab59.zip
Log an error if we cannot find the defined arpwatch interface
Diffstat (limited to 'packages')
-rw-r--r--packages/arpwatch.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/arpwatch.xml b/packages/arpwatch.xml
index c38201aa..39b19d66 100644
--- a/packages/arpwatch.xml
+++ b/packages/arpwatch.xml
@@ -35,7 +35,10 @@
foreach($config['installedpackages']['arpwatch']['config'] as $arpw) {
$ints = $arpw['interface'];
}
- if($ints == "") $ints = "lan";
+ if($ints == "") {
+ $ints = "lan";
+ log_error("Could not find a interface for arpwatch. Defaulting to LAN");
+ }
global $config;
$int = convert_friendly_interface_to_real_interface_name($ints);
$start = "/usr/local/sbin/arpwatch -d -i {$int} &amp;";