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