diff options
author | hosxy <hosxy@live.com> | 2019-08-18 21:13:41 +0800 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-15 17:01:19 -0500 |
commit | c6a037e9dd1759320b02057382effe72e1c6791c (patch) | |
tree | 375094062e6a906c86286c5ee8cd1c8249c024d1 | |
parent | 7faa48ae04588d4c9a529156218691a53ee35421 (diff) |
fix agetty can be start directly
This fixes #320.
-rw-r--r-- | init.d/agetty.in | 2 |
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." |