aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorhosxy <hosxy@live.com>2019-08-18 21:13:41 +0800
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-09-15 17:01:19 -0500
commitc6a037e9dd1759320b02057382effe72e1c6791c (patch)
tree375094062e6a906c86286c5ee8cd1c8249c024d1 /init.d
parent7faa48ae04588d4c9a529156218691a53ee35421 (diff)
fix agetty can be start directly
This fixes #320.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/agetty.in2
1 files changed, 1 insertions, 1 deletions
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."