1From b39ab180358ed451eae9df900f49a72ef1eb7442 Mon Sep 17 00:00:00 2001
2From: Carlos Santos <unixmania@gmail.com>
3Date: Sun, 1 Mar 2020 09:04:48 -0300
4Subject: [PATCH] init.d/agetty: replace /sbin/agetty by /sbin/getty
5
6In Buildroot getty is provided by BusyBox or util-linux (agetty). Both
7create a /sbin/getty symlink pointing to the actual program, so make the
8agetty service use that path instead of /sbin/agetty.
9
10The patch is required because it's not possible to override the command
11by means of a configuration file.
12
13Signed-off-by: Carlos Santos <unixmania@gmail.com>
14---
15 init.d/agetty.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/init.d/agetty.in b/init.d/agetty.in
19index e4866f7a..e1864628 100644
20--- a/init.d/agetty.in
21+++ b/init.d/agetty.in
22@@ -14,7 +14,7 @@ supervisor=supervise-daemon
23 port="${RC_SVCNAME#*.}"
24 respawn_period="${respawn_period:-60}"
25 term_type="${term_type:-linux}"
26-command=/sbin/agetty
27+command=/sbin/getty
28 command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}"
29 pidfile="/run/${RC_SVCNAME}.pid"
30
31--
322.18.2
33
34