From d127438dd5efc68c9a9a25d5ad3a6aa5ae466ba5 Mon Sep 17 00:00:00 2001 From: Nasir Hossain Nishad Date: Fri, 16 Feb 2024 17:40:53 +0600 Subject: [PATCH] fix: start shell in init and shutdown on exit --- scripts/init.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/init.sh b/scripts/init.sh index ca2c41d..6fbe832 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -6,4 +6,10 @@ dmesg -n 1 # Mount the file system mount -t devtmpfs none /dev mount -t proc none /dev -mount -t sysfs none /sys \ No newline at end of file +mount -t sysfs none /sys + +# Start shell +/bin/sh + +# Shutdown the machine when shell is exited +poweroff -f \ No newline at end of file