From 3182b56e35e1a07c920ebded54fc55686ced99bf Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 11 Nov 2020 07:55:00 -0500 Subject: revamp module support, other refactoring --- init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'init') 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 -- cgit v1.2.3-70-g09d2