fix centos6 build failures
[trinity.git] / scripts / load-all-modules.sh
blobba5d6d20a2cc2155443ce673fc8d7c1ba3fa7292
1 #!/bin/bash
3 DIR=/lib/modules/`uname -r`
5 for i in `find $DIR/kernel -type f -name "*.ko" | grep -v test_nx | grep -v ring_buffer_benchmark`
6 do
7 MOD=`basename $i | sed s/\.ko//`
8 echo Loading $MOD
9 /sbin/modprobe $MOD
10 done