about summary refs log tree commit diff
path: root/1
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-07-29 16:18:42 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-07-29 16:27:06 +0200
commit80b066c83c83a5ba37181703716b7618232dda4e (patch)
tree1496586c74564fbabde4062800a36978fb346a0f /1
parent355a02b5baa1287c9c1c3f35c189d22fde6e5323 (diff)
downloadrunit-void-80b066c83c83a5ba37181703716b7618232dda4e.tar.gz
runit-void-80b066c83c83a5ba37181703716b7618232dda4e.tar.xz
runit-void-80b066c83c83a5ba37181703716b7618232dda4e.zip
Add modules-load.d(5) compatible kernel module loader
Diffstat (limited to '1')
-rwxr-xr-x16
1 files changed, 2 insertions, 4 deletions
diff --git a/1 b/1
index 4b895fd..30b7980 100755
--- a/1
+++ b/1
@@ -138,10 +138,8 @@ cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true
 install -m0664 -o root -g utmp /dev/null /run/utmp
 rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot
 
-if [ -n "$MODULES" ]; then
-    msg "Loading kernel modules: ${MODULES} ...\n"
-    modprobe -ab ${MODULES}
-fi
+msg "Loading kernel modules: ${MODULES} ...\n"
+modules-load ${MODULES}
 
 dmesg >/var/log/dmesg.log