summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-13 01:12:46 +0200
committerDave Reisner <d@falconindy.com>2011-06-16 20:19:12 +0200
commit5c13206bd991df7efc48043feb3d0ae8489ab835 (patch)
tree120af85b52d944aa38d39db0e6bf5206db5cb54b /init
parentbeb5f5c05a5433a10c446b8a6b15db64c75748a5 (diff)
downloadmkinitcpio-5c13206bd991df7efc48043feb3d0ae8489ab835.tar.gz
mkinitcpio-5c13206bd991df7efc48043feb3d0ae8489ab835.tar.xz
init: don't attempt modprobe if $MODULES is empty
This is harmless when it fails, but it might alarm users. Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'init')
-rw-r--r--init2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index a5e6103..c5f15f7 100644
--- a/init
+++ b/init
@@ -53,7 +53,7 @@ fi
. /config
-/sbin/modprobe -qab $MODULES
+[ -n "$MODULES" ] && /sbin/modprobe -qab $MODULES
# If rootdelay is empty or not a non-negative integer, set it to 10
if [ -z "${rootdelay}" ] || ! [ "${rootdelay}" -ge 0 ]; then