summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-13 21:01:27 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-13 21:01:27 -0500
commit83908fb474cb12bb4ee6f8c3f8897cc0c6435022 (patch)
tree6e1902b8c3ff4d4ca7dbcfece02784fbc546555c
parente54a8ed3686c6de17b284937b7828e471db83a3f (diff)
downloadminitramfs-83908fb474cb12bb4ee6f8c3f8897cc0c6435022.tar.xz
minitramfs-83908fb474cb12bb4ee6f8c3f8897cc0c6435022.zip
init: add some exit guards
-rw-r--r--init4
1 files 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