From 9c6190fd37e62f10d7f5a50e9b003f6d0f355055 Mon Sep 17 00:00:00 2001
From: Qiyang Sun <qs2g22@soton.ac.uk>
Date: Sun, 3 Nov 2024 13:37:47 +0000
Subject: [PATCH] Bugfix typos

---
 recipes-core/fastinit/files/fastinit.sh | 4 +---
 recipes-core/fastinit/files/level3d.sh  | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/recipes-core/fastinit/files/fastinit.sh b/recipes-core/fastinit/files/fastinit.sh
index d0562e2..803926c 100755
--- a/recipes-core/fastinit/files/fastinit.sh
+++ b/recipes-core/fastinit/files/fastinit.sh
@@ -62,9 +62,7 @@ level_two() {
 	gp23hi
 	/sbin/level3d.sh &
 	/usr/bin/marvision 1>/dev/null 2>/dev/null
-	# To avoid undefined behaviours when marvision exited abnormally,
-	# reboot the system. 
-	reboot -f
+	wait $!
 }
 
 level_three() {
diff --git a/recipes-core/fastinit/files/level3d.sh b/recipes-core/fastinit/files/level3d.sh
index 393f6e7..0d144c7 100755
--- a/recipes-core/fastinit/files/level3d.sh
+++ b/recipes-core/fastinit/files/level3d.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-/usr/local/gpiomon -c 0 -n 1 -q 24
+/usr/bin/gpiomon -c 0 -n 1 -q 24
 # blocked until
 /sbin/chlevel.sh 3
 
-- 
GitLab