diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/arpwatch.xml | 7 |
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 . " &\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); |