diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 04:29:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 04:29:58 +0000 |
commit | d71ae96d165745d3a5da912f0a56f5fa8fdeb630 (patch) | |
tree | 01f2c37ca0ee5a39ef45a50a19c50758b5cdac05 /packages | |
parent | ff2d667f748414a55188bc8c9d9c1d645d395a0f (diff) | |
download | pfsense-packages-d71ae96d165745d3a5da912f0a56f5fa8fdeb630.tar.gz pfsense-packages-d71ae96d165745d3a5da912f0a56f5fa8fdeb630.tar.bz2 pfsense-packages-d71ae96d165745d3a5da912f0a56f5fa8fdeb630.zip |
Use filenamea instead of filename, filename may become a reserved word down the road.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index f96d6293..18a4bcff 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -106,10 +106,10 @@ function generate_snort_conf() { /* XXX: make multi wan friendly */ $snort_ext_int = $config['installedpackages']['snort']['config'][0]['iface_array'][0]; - $text = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php"; - $file = "/etc/crontab"; - add_text_to_file($file, $text); - remove_text_from_file($file, $text); + $text_ww = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php"; + $filenamea = "/etc/crontab"; + remove_text_from_file($filenamea, $text_ww); + add_text_to_file($filenamea, $text_ww); exec("killall -HUP cron"); /* should we install a automatic update crontab entry? */ |