summary refs log tree commit diff
path: root/contrib/rvnit/03Skmods
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rvnit/03Skmods')
-rwxr-xr-xcontrib/rvnit/03Skmods12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/rvnit/03Skmods b/contrib/rvnit/03Skmods
new file mode 100755
index 0000000..f25fb10
--- /dev/null
+++ b/contrib/rvnit/03Skmods
@@ -0,0 +1,12 @@
+#!/bin/sh
+# vim: set ts=4 sw=4 et:
+
+. /etc/runit/functions
+
+[ -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