aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-27 00:06:26 +0000
committerColin Smith <colin@pfsense.org>2005-04-27 00:06:26 +0000
commite7670ae8fdaf8c4daa3224fd14b79f837d4ed4d0 (patch)
tree424b478dcab73fc062086490c40002cd962f070a
parent99403e1a6b6cfcf289817533c57a2665b7675a98 (diff)
downloadpfsense-packages-e7670ae8fdaf8c4daa3224fd14b79f837d4ed4d0.tar.gz
pfsense-packages-e7670ae8fdaf8c4daa3224fd14b79f837d4ed4d0.tar.bz2
pfsense-packages-e7670ae8fdaf8c4daa3224fd14b79f837d4ed4d0.zip
Fix arpwatch daemonization and remove note.
-rw-r--r--packages/arpwatch.xml7
1 files 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 @@
<fieldname>interface</fieldname>
<description>Enter the desired listening interface here.</description>
<type>interfaces_selection</type>
- <note>NOTE: All messages generated by arpwatch are currently sent to Diagnostics->System logs.</note>
</field>
</fields>
<custom_php_install_command>
@@ -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 . " &amp;\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 . " &amp;\n\n");
}
chmod("/usr/local/etc/rc.d/arpwatch.sh", 0755);
fclose($fout);