rt/msr_load
branchkernel2.6
changeset 28 801dc7eabf51
parent 0 05c992bf5847
child 181 3e9155836bc7
equal deleted inserted replaced
27:d75ef6b46e33 28:801dc7eabf51
    10     group="wheel"
    10     group="wheel"
    11 fi
    11 fi
    12 
    12 
    13 # invoke insmod with all arguments we got
    13 # invoke insmod with all arguments we got
    14 # and use a pathname, as newer modutils don't look in . by default
    14 # and use a pathname, as newer modutils don't look in . by default
    15 /sbin/insmod -f ./$module.o $* || exit 1
    15 /sbin/insmod -f ./$module.ko $* || exit 1
    16 
    16 
    17 major=`cat /proc/devices | awk "\\$2==\"$device\" {print \\$1}"`
    17 major=`cat /proc/devices | awk "\\$2==\"$device\" {print \\$1}"`
    18 
    18 
    19 echo $major
    19 echo $major
    20 # Remove stale nodes and replace them, then give gid and perms
    20 # Remove stale nodes and replace them, then give gid and perms