#!/bin/sh cd $1 for f in * do case $f in bcmatmtest.ko) echo "skip $f" ;; *.ko) insmod $f ;; *) $0 $f ;; esac done