diff options
author | suigin <suigin@national.shitposting.agency> | 2016-09-20 08:36:44 -0700 |
---|---|---|
committer | suigin <suigin@national.shitposting.agency> | 2016-09-20 08:36:44 -0700 |
commit | 6afe11f7adb479dea3de45ea33da3deaa288ad31 (patch) | |
tree | d20547c6b2c0966066a655a7a6d374c5e1dc07d2 | |
parent | d8105d33b0676f0d4918589207b7a893279d7b9f (diff) | |
parent | a082284efd1a99cf2191e425a2afd6233103823a (diff) | |
download | runit-void-6afe11f7adb479dea3de45ea33da3deaa288ad31.tar.gz runit-void-6afe11f7adb479dea3de45ea33da3deaa288ad31.tar.xz runit-void-6afe11f7adb479dea3de45ea33da3deaa288ad31.zip |
Merge branch 'master' of https://github.com/voidlinux/void-runit
-rw-r--r-- | core-services/02-kmods.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core-services/02-kmods.sh b/core-services/02-kmods.sh index 9d904c7..9b4636a 100644 --- a/core-services/02-kmods.sh +++ b/core-services/02-kmods.sh @@ -1,6 +1,8 @@ # vim: set ts=4 sw=4 et: [ -n "$VIRTUALIZATION" ] && return 0 +# Do not try to load modules if kernel does not support them. +[ ! -e /proc/modules ] && return 0 msg "Loading kernel modules..." modules-load -v | tr '\n' ' ' | sed 's:insmod [^ ]*/::g; s:\.ko\(\.gz\)\? ::g' |