summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init7
1 files changed, 4 insertions, 3 deletions
diff --git a/init b/init
index 38076bb..8c8709c 100644
--- a/init
+++ b/init
@@ -45,13 +45,14 @@ if [ -n "${disablehooks}" ]; then
done
fi
-if [ -n "${earlymodules}" ]; then
- modprobe -qab ${earlymodules//,/ }
+earlymodules=${earlymodules//,/ }
+if [ -n "${earlymodules## }" ]; then
+ modprobe -qab ${earlymodules}
fi
. /config
-[ -n "$MODULES" ] && modprobe -qab $MODULES
+[ -n "${MODULES## }" ] && modprobe -qab $MODULES
# If rootdelay is empty or not a non-negative integer, set it to 10
if [ -z "${rootdelay}" ] || ! [ "${rootdelay}" -ge 0 ]; then