#!/bin/sh export KERNEL_DIR=/usr/src/linux MOD_DIR=`pwd` echo "MOD_DIR - $MOD_DIR" cd $KERNEL_DIR gmake SUBDIRS=$MOD_DIR modules