File: load-all-modules.sh

package info (click to toggle)
trinity 1.8-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,284 kB
  • sloc: ansic: 33,847; sh: 536; makefile: 234
file content (10 lines) | stat: -rwxr-xr-x 244 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

DIR=/lib/modules/`uname -r`

for i in `find $DIR/kernel -type f -name "*.ko" | grep -v test_nx | grep -v ring_buffer_benchmark`
do
        MOD=`basename $i | sed s/\.ko//`
        echo Loading $MOD
        /sbin/modprobe $MOD
done