From 366c535d93aa3a8ad44f56ca1e024bb9e26bf11c Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 7 Jan 2022 16:47:27 +0100 Subject: contrib: update --- contrib/rvnit/03Skmods | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 contrib/rvnit/03Skmods (limited to 'contrib/rvnit/03Skmods') 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 -- cgit 1.4.1