diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-11-13 21:01:27 -0500 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-11-13 21:01:27 -0500 |
commit | 83908fb474cb12bb4ee6f8c3f8897cc0c6435022 (patch) | |
tree | 6e1902b8c3ff4d4ca7dbcfece02784fbc546555c | |
parent | e54a8ed3686c6de17b284937b7828e471db83a3f (diff) | |
download | minitramfs-83908fb474cb12bb4ee6f8c3f8897cc0c6435022.tar.xz minitramfs-83908fb474cb12bb4ee6f8c3f8897cc0c6435022.zip |
init: add some exit guards
-rw-r--r-- | init | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |