From 83908fb474cb12bb4ee6f8c3f8897cc0c6435022 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Fri, 13 Nov 2020 21:01:27 -0500 Subject: init: add some exit guards --- init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init b/init index 428bd11..d864e21 100644 --- a/init +++ b/init @@ -4,7 +4,7 @@ trap 'exec sh' EXIT export PATH="/usr/sbin:/usr/bin:/sbin:/bin" -mount -t proc proc /proc +mount -t proc proc /proc || exit mount -t devtmpfs devtmpfs /dev || exit # /dev/pts for dropbear mount -t devpts devpts /dev/pts @@ -12,7 +12,7 @@ mount -t devpts devpts /dev/pts while read -r line; do case "$line" in '#'*) ;; - *) modprobe $line || exit + *) modprobe $line esac done < /etc/modules -- cgit v1.2.3-54-g00ecf