#!/bin/sh

major=`cat /proc/devices | grep heci | awk '{print $1}'`
node_legacy="/dev/iamthif"
node_heci="/dev/heci"

if [ -c ${node_legacy} ] ; then 
    rm -f ${node_legacy} 
fi 

if [ -c ${node_heci} ] ; then 
    rm -f ${node_heci} 
fi 
if [ "${major}" != "" ]; then
    mknod ${node_legacy} c $major 0 -m600
    mknod ${node_heci} c $major 1 -m600
else
    echo "Please load the heci driver module before running this script !"
fi
 
