Merge "init: Make console a shutdown critical service" am: c332f33187

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2385300

Change-Id: I6eb59b9b831b30d5905474a4948176a3f9ec862b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/rootdir/init.rc b/rootdir/init.rc
index efad37c..a2fb88a 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -1286,6 +1286,7 @@
     group shell log readproc
     seclabel u:r:shell:s0
     setenv HOSTNAME console
+    shutdown critical
 
 on property:ro.debuggable=1
     # Give writes to anyone for the trace folder on debug builds.