From c6a037e9dd1759320b02057382effe72e1c6791c Mon Sep 17 00:00:00 2001 From: hosxy Date: Sun, 18 Aug 2019 21:13:41 +0800 Subject: [PATCH] fix agetty can be start directly This fixes #320. --- init.d/agetty.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/agetty.in b/init.d/agetty.in index e4866f7a..7409e122 100644 --- a/init.d/agetty.in +++ b/init.d/agetty.in @@ -25,7 +25,7 @@ depend() { } start_pre() { - if [ -z "$port" ]; then + if [ "$port" = "$RC_SVCNAME" ]; then eerror "${RC_SVCNAME} cannot be started directly. You must create" eerror "symbolic links to it for the ports you want to start" eerror "agetty on and add those to the appropriate runlevels."