From 0f36b58bcdd5f00b5a5c3d300c5fdbe382807444 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=AA=20de=20Souza=20Pinto?= <rene@renesp.com.br>
Date: Mon, 9 Oct 2023 13:59:12 +0200
Subject: [PATCH] main/busybox: Add serial consoles to securetty
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Add to securetty file the serial consoles related to the following devices:

- NVIDIA Jetson Xavier NX developer kit
- Lenovo ThinkEdge SE70
- phyBOARD-Pollux board (i.MX8M Plus SoC)
- Advantech EPC-R3720 (i.MX8M Plus SoC)
- Rockchip RK3399 developer kit

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
---
 main/busybox/APKBUILD | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD
index 5f22ac452383..1e4d8e425b47 100644
--- a/main/busybox/APKBUILD
+++ b/main/busybox/APKBUILD
@@ -5,7 +5,7 @@
 # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
 pkgname=busybox
 pkgver=1.36.1
-pkgrel=12
+pkgrel=13
 pkgdesc="Size optimized toolbox of many common UNIX utilities"
 url="https://busybox.net/"
 arch="all"
@@ -259,6 +259,7 @@ package() {
 	install -Dm644 "$srcdir"/udhcpc.conf "$pkgdir"/etc/udhcpc/udhcpc.conf
 	cat >"$pkgdir"/etc/securetty <<EOF
 console
+tty0
 tty1
 tty2
 tty3
@@ -273,8 +274,14 @@ tty11
 hvc0
 ttyS0
 ttyS1
+ttyS2
 ttyAMA0
 ttyAMA1
+ttyTCU0
+ttyTHS0
+ttyTHS1
+ttymxc0
+ttymxc2
 EOF
 
 	# script for udhcpc
-- 
GitLab