aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_pkg.sh
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-07 15:06:55 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-10-07 15:06:55 -0400
commit2d9291cbc90f5b767134c1753f6ca4ea288e22e9 (patch)
tree126a5bd776bc4d54f7bc4a2797ec34b65e6787ee /config/snort/snort_pkg.sh
parent5ebe0acc2e91dda6ec54e1535be95aad180105dc (diff)
downloadpfsense-packages-2d9291cbc90f5b767134c1753f6ca4ea288e22e9.tar.gz
pfsense-packages-2d9291cbc90f5b767134c1753f6ca4ea288e22e9.tar.bz2
pfsense-packages-2d9291cbc90f5b767134c1753f6ca4ea288e22e9.zip
Revert code exposing configured interfaces as separate services.
Diffstat (limited to 'config/snort/snort_pkg.sh')
-rw-r--r--config/snort/snort_pkg.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/config/snort/snort_pkg.sh b/config/snort/snort_pkg.sh
deleted file mode 100644
index a19adf4d..00000000
--- a/config/snort/snort_pkg.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/local/bin/php -f
-<?php
-require_once("/usr/local/pkg/snort/snort.inc");
-global $g;
-switch (strtolower($argv[1])) {
- case "start":
- if (!file_exists("{$g['varrun_path']}/snort_pkg_starting.lck")) {
- touch("{$g['varrun_path']}/snort_pkg_starting.lck");
- snort_start_all_interfaces();
- unlink_if_exists("{$g['varrun_path']}/snort_pkg_starting.lck");
- }
- break;
-
- case "stop":
- snort_stop_all_interfaces();
- unlink_if_exists("{$g['varrun_path']}/snort_pkg_starting.lck");
- break;
-
- case "restart":
- snort_stop_all_interfaces();
- touch("{$g['varrun_path']}/snort_pkg_starting.lck");
- snort_start_all_interfaces();
- unlink_if_exists("{$g['varrun_path']}/snort_pkg_starting.lck");
- break;
-
- default:
- echo "WARNING: ignoring unsupported command - '{$argv[1]}'\n";
-}
-?>