speed.cgi: Add requirement for general-functions.pl.
Commit Message
The CGI now requires the general-functions library, because the
get_red_interface() function is used.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
html/cgi-bin/speed.cgi | 2 ++
1 file changed, 2 insertions(+)
Comments
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
On 19/06/2021 16:03, Stefan Schantl wrote:
> The CGI now requires the general-functions library, because the
> get_red_interface() function is used.
>
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
> html/cgi-bin/speed.cgi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/html/cgi-bin/speed.cgi b/html/cgi-bin/speed.cgi
> index 8acdb2bd8..b550fda52 100644
> --- a/html/cgi-bin/speed.cgi
> +++ b/html/cgi-bin/speed.cgi
> @@ -19,6 +19,8 @@
> # #
> ###############################################################################
>
> +require '/var/ipfire/general-functions.pl';
> +
> my $data_last = $ENV{'QUERY_STRING'};
> my $rxb_last = 0;
> my $txb_last = 0;
@@ -19,6 +19,8 @@
# #
###############################################################################
+require '/var/ipfire/general-functions.pl';
+
my $data_last = $ENV{'QUERY_STRING'};
my $rxb_last = 0;
my $txb_last = 0;