summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init7
1 files changed, 2 insertions, 5 deletions
diff --git a/init b/init
index 8e9ad90..7cd812f 100644
--- a/init
+++ b/init
@@ -26,14 +26,11 @@ for d in ${disablehooks//,/ }; do
eval "hook_${d}=disabled"
done
-earlymodules=${earlymodules//,/ }
-if [ -n "${earlymodules## }" ]; then
- modprobe -qab ${earlymodules}
-fi
+[ -n "${earlymodules//[[:space:]]}" ] && modprobe -qab ${earlymodules//,/ }
. /config
-[ -n "${MODULES## }" ] && modprobe -qab $MODULES
+[ -n "${MODULES//[[:space:]]}" ] && modprobe -qab $MODULES
# If rootdelay is empty or not a non-negative integer, set it to 10
if [ -z "${rootdelay}" ] || ! [ "${rootdelay}" -ge 0 ]; then