From d93842336c8809ffa429bdd08e66169bdefaab59 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 9 Sep 2005 21:28:10 +0000 Subject: Log an error if we cannot find the defined arpwatch interface --- packages/arpwatch.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages') 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} &"; -- cgit v1.2.3