commit:     40aa69cf3a99fa080375a702631da4d2311ebf3e
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Thu Mar 15 01:37:02 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Mar 15 01:37:02 2018 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=40aa69cf

agetty.in: allow status to be displayed

 init.d/agetty.in | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/init.d/agetty.in b/init.d/agetty.in
index 390b1317..971ee86c 100644
--- a/init.d/agetty.in
+++ b/init.d/agetty.in
@@ -16,7 +16,6 @@ term_type="${term_type:-linux}"
 command=/sbin/agetty
 command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}"
 pidfile="/run/${RC_SVCNAME}.pid"
-export EINFO_QUIET="${quiet:-yes}"
 
 depend() {
        after local
@@ -29,5 +28,12 @@ start_pre() {
                eerror "symbolic links to it for the ports you want to start"
                eerror "agetty on and add those to the appropriate runlevels."
                return 1
+       else
+               export EINFO_QUIET="${quiet:-yes}"
        fi
 }
+
+stop_pre()
+{
+       export EINFO_QUIET="${quiet:-yes}"
+}

Reply via email to