summary refs log tree commit diff
path: root/contrib/rvnit/02Sstatic-devnodes
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rvnit/02Sstatic-devnodes')
-rwxr-xr-xcontrib/rvnit/02Sstatic-devnodes8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/rvnit/02Sstatic-devnodes b/contrib/rvnit/02Sstatic-devnodes
new file mode 100755
index 0000000..ef747a4
--- /dev/null
+++ b/contrib/rvnit/02Sstatic-devnodes
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Some kernel modules must be loaded before starting udev(7).
+# Load them by looking at the output of `kmod static-nodes`.
+
+for f in $(kmod static-nodes 2>/dev/null|awk '/Module/ {print $2}'); do
+	modprobe -bq $f 2>/dev/null
+done