]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Drop old control code
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 14 Dec 2017 07:31:41 +0000 (08:31 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:50:27 +0000 (11:50 +0200)
The control file are not longer required, because the
initscript uses the settings file to determine if snort
should be started and binded to which interfaches.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 2b9b7c0b164c331598696b8900d8df7a2448d210..995d9745d2ee10d3209c40fcc7e526a699a91f76 100644 (file)
@@ -312,37 +312,6 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'update'}) {
                # Store settings into settings file.
                &General::writehash("${General::swroot}/snort/settings", \%cgiparams);
 
-               # Create/Remove control files for snort.
-               if ($snortsettings{'ENABLE_SNORT'} eq 'on') {
-                       system ('/usr/bin/touch', "${General::swroot}/snort/enable");
-               } else {
-                       unlink "${General::swroot}/snort/enable";
-               }
-
-               if ($snortsettings{'ENABLE_SNORT_GREEN'} eq 'on') {
-                       system ('/usr/bin/touch', "${General::swroot}/snort/enable_green");
-               } else {
-                       unlink "${General::swroot}/snort/enable_green";
-               }
-
-               if ($snortsettings{'ENABLE_SNORT_BLUE'} eq 'on') {
-                       system ('/usr/bin/touch', "${General::swroot}/snort/enable_blue");
-               } else {
-                       unlink "${General::swroot}/snort/enable_blue";
-               }
-
-               if ($snortsettings{'ENABLE_SNORT_ORANGE'} eq 'on') {
-                       system ('/usr/bin/touch', "${General::swroot}/snort/enable_orange");
-               } else {
-                       unlink "${General::swroot}/snort/enable_orange";
-               }
-
-               if ($snortsettings{'ENABLE_PREPROCESSOR_HTTP_INSPECT'} eq 'on') {
-                       system ('/usr/bin/touch', "${General::swroot}/snort/enable_preprocessor_http_inspect");
-               } else {
-                       unlink "${General::swroot}/snort/enable_preprocessor_http_inspect";
-               }
-
                # Call snortctrl to restart snort
                system('/usr/local/bin/snortctrl restart >/dev/null');
        }