speed.cgi: Add requirement for general-functions.pl.

Message ID 20210619140314.2397-1-stefan.schantl@ipfire.org
State Accepted
Commit 5e99660d7d16b91914ecf1742c8302b3f6b8b2c4
Headers
Series speed.cgi: Add requirement for general-functions.pl. |

Commit Message

Stefan Schantl June 19, 2021, 2:03 p.m. UTC
  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

Adolf Belka June 20, 2021, 7:12 p.m. UTC | #1
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;
  

Patch

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;