aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-03-14 20:37:02 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-03-14 20:37:02 -0500
commit40aa69cf3a99fa080375a702631da4d2311ebf3e (patch)
tree574484201d2327319b8d755fd97c9874bdccf60d
parent5346fbf2c90b33b3abc01588e4727d4402f8db62 (diff)
agetty.in: allow status to be displayed
-rw-r--r--init.d/agetty.in8
1 files changed, 7 insertions, 1 deletions
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}"
+}