From c5a6a76c05d16c497befd0f98252b9a9924aa327 Mon Sep 17 00:00:00 2001 From: Qiyang Sun <qs2g22@soton.ac.uk> Date: Tue, 6 Aug 2024 23:20:30 +0100 Subject: [PATCH] Fastinit poweroff system before exit Boot time: 3.778 (kernel) --- recipes-core/fastinit/files/fastinit.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes-core/fastinit/files/fastinit.sh b/recipes-core/fastinit/files/fastinit.sh index c05cafa..abda454 100755 --- a/recipes-core/fastinit/files/fastinit.sh +++ b/recipes-core/fastinit/files/fastinit.sh @@ -28,6 +28,8 @@ level_one() { log_to_kernel "setting gpio 23 to high" /usr/bin/gpioset -c 0 23=1 & + crit_to_kernel "host is up and ready" + log_to_kernel "getting teletypes on ttyS0" /sbin/getty -L 115200 ttyS0 vt100 } @@ -71,6 +73,5 @@ else esac fi -crit_to_kernel "host is up and ready" - -exit 0 +# fastinit has nothing to do when exiting a runlevel, halt +exec /sbin/poweroff -f -- GitLab