3 MODULE_DIR
=/lib
/modules
/`uname -r`/kernel
7 trap "umount $3; rm -f $2; rmdir $3" 0
9 dd bs
=1204k count
=20 if=/dev
/zero of
=$2
13 while true
; do mount
-o loop
$2 $3; umount
$3; sleep 1; done
17 while true
; do modprobe
$2; rmmod
$2; done
22 find $MODULE_DIR -name '*.ko' |
( while read mod
; do echo $RANDOM $mod; done ) |
sort -n |
23 while read junk modname
; do
24 if [ $RANDOM -gt $RANDOM ]; then
25 rmmod
`basename $modname .ko`
27 modprobe
`basename $modname .ko`
33 $0 mount-unmount testfs.$$
/tmp
/$$
&