diff options
Diffstat (limited to 'core-services/07-kmods.sh')
-rwxr-xr-x | core-services/07-kmods.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core-services/07-kmods.sh b/core-services/07-kmods.sh new file mode 100755 index 0000000..07a5310 --- /dev/null +++ b/core-services/07-kmods.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# vim: set ts=4 sw=4 et: + +. /etc/runit/functions +[ -r /etc/rc.conf ] && . /etc/rc.conf + +[ -n "$VIRTUALIZATION" ] && return 0 + +msg "Loading kernel modules...\n" +modules-load -v ${MODULES} | tr '\n' ' ' | sed 's:insmod [^ ]*/::g; s:\.ko\(\.gz\)\? ::g' +echo |