summary refs log tree commit diff
path: root/core-services/02-kmods.sh
blob: 9b4636af1d1be4034c3691cac991a003e857c6cd (plain) (blame)
1
2
3
4
5
6
7
8
9
# 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'
echo