index.cgi: Show deprecation warning for armv6l

Message ID 20220814162849.1786477-1-michael.tremer@ipfire.org
State Accepted
Commit a61509b99580fcffb30025954c3e0ba8faf17235
Headers
Series index.cgi: Show deprecation warning for armv6l |

Commit Message

Michael Tremer Aug. 14, 2022, 4:28 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/index.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Peter Müller Aug. 14, 2022, 5:11 p.m. UTC | #1
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>  html/cgi-bin/index.cgi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi
> index 6fecae1ff..5c384fd49 100644
> --- a/html/cgi-bin/index.cgi
> +++ b/html/cgi-bin/index.cgi
> @@ -543,7 +543,7 @@ if ( ! -e "/var/ipfire/main/send_profile") {
>  
>  # EOL architecture
>  my ($sysname, $nodename, $release, $version, $machine) = &POSIX::uname();
> -if ($machine =~ m/^i.86$/) {
> +if ($machine =~ m/^arm/) {
>  	$warnmessage .= "<li><a href='https://wiki.ipfire.org/hardware/requirements' style='color:white;'>$Lang::tr{'eol architecture warning'}</a></li>";
>  }
>
  

Patch

diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi
index 6fecae1ff..5c384fd49 100644
--- a/html/cgi-bin/index.cgi
+++ b/html/cgi-bin/index.cgi
@@ -543,7 +543,7 @@  if ( ! -e "/var/ipfire/main/send_profile") {
 
 # EOL architecture
 my ($sysname, $nodename, $release, $version, $machine) = &POSIX::uname();
-if ($machine =~ m/^i.86$/) {
+if ($machine =~ m/^arm/) {
 	$warnmessage .= "<li><a href='https://wiki.ipfire.org/hardware/requirements' style='color:white;'>$Lang::tr{'eol architecture warning'}</a></li>";
 }