0003-init.d-agetty-replace-sbin-agetty-by-sbin-getty.patch 1.1 KB

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