summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 07:55:00 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 08:09:28 -0500
commit3182b56e35e1a07c920ebded54fc55686ced99bf (patch)
tree33ed00cb3df1c00680dd1821034b47a5583823ef /init
parent9ac1d14079b3bd400a78d650d43fb8bad1d1e7a3 (diff)
downloadminitramfs-3182b56e35e1a07c920ebded54fc55686ced99bf.tar.xz
minitramfs-3182b56e35e1a07c920ebded54fc55686ced99bf.zip
revamp module support, other refactoring
Diffstat (limited to 'init')
-rw-r--r--init7
1 files changed, 6 insertions, 1 deletions
diff --git a/init b/init
index b1a78f3..3b58e88 100644
--- a/init
+++ b/init
@@ -11,7 +11,12 @@ mkdir -p /dev/pts
# /dev/pts for dropbear
mount -t devpts devpts /dev/pts
-/etc/modules.sh || exit
+while read -r line; do
+ case "$line" in
+ '#'*) ;;
+ *) modprobe $line || exit
+ esac
+done < /etc/modules
mount -t efivarfs efivarfs /efivars
load-random-seed /efivars/LoaderRandomSeed-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f