From e7670ae8fdaf8c4daa3224fd14b79f837d4ed4d0 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Wed, 27 Apr 2005 00:06:26 +0000 Subject: Fix arpwatch daemonization and remove note. --- packages/arpwatch.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/arpwatch.xml b/packages/arpwatch.xml index 46ddf162..0a8d6b34 100644 --- a/packages/arpwatch.xml +++ b/packages/arpwatch.xml @@ -21,7 +21,6 @@ interface Enter the desired listening interface here. interfaces_selection - NOTE: All messages generated by arpwatch are currently sent to Diagnostics->System logs. @@ -34,9 +33,9 @@ global $config; $fout = fopen("/usr/local/etc/rc.d/arpwatch.sh","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); - if(isset($config['installedpackages']['arpwatch']['config'][0]['interface'])) { - $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['arpwatch']['config']['0']['interface']); - fwrite($fout, "/usr/local/sbin/arpwatch -d -i " . $int . " &\n\n"); + if(isset($config['installedpackages']['arpwatch']['config'])) { + $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['arpwatch']['config'][0]['interface']); + fwrite($fout, "/usr/local/sbin/arpwatch -d -i " . $int . " &\n\n"); } chmod("/usr/local/etc/rc.d/arpwatch.sh", 0755); fclose($fout); -- cgit v1.2.3