02-kmods.sh (277B) download
1# vim: set ts=4 sw=4 et:
2
3[ -n "$VIRTUALIZATION" ] && return 0
4# Do not try to load modules if kernel does not support them.
5[ ! -e /proc/modules ] && return 0
6
7msg "Loading kernel modules..."
8modules-load -v | tr '\n' ' ' | sed 's:insmod [^ ]*/::g; s:\.ko\(\.gz\)\? ::g'
9echo