1#!/bin/sh 2insmod -f ./tbase.ko || insmod -f ./tbase.o || exit 1 3rm -f /dev/tbase 4major=`awk '/tbase/{print \$1}' /proc/devices` 5mknod /dev/tbase c $major 0 6