mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
ids-functions.pl: Use new system methods
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
f3e3cb371d
commit
8163192065
@@ -118,7 +118,7 @@ sub check_and_create_filelayout() {
|
||||
#
|
||||
sub checkdiskspace () {
|
||||
# Call diskfree to gather the free disk space of /var.
|
||||
my @df = `/bin/df -B M /var`;
|
||||
my @df = &General::system_output("/bin/df", "-B", "M", "/var");
|
||||
|
||||
# Loop through the output.
|
||||
foreach my $line (@df) {
|
||||
@@ -463,7 +463,7 @@ sub call_suricatactrl ($) {
|
||||
|
||||
# Call the suricatactrl binary and pass the "cron" command
|
||||
# with the requrested interval.
|
||||
system("$suricatactrl $option $interval &>/dev/null");
|
||||
&General::system("$suricatactrl", "$option", "$interval");
|
||||
|
||||
# Return "1" - True.
|
||||
return 1;
|
||||
@@ -475,7 +475,7 @@ sub call_suricatactrl ($) {
|
||||
} else {
|
||||
# Call the suricatactrl binary and pass the requrested
|
||||
# option to it.
|
||||
system("$suricatactrl $option &>/dev/null");
|
||||
&General::system("$suricatactrl", "$option");
|
||||
|
||||
# Return "1" - True.
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user