#!/bin/sh
# remove stale nodes
rm -f /dev/dsp_mailbox 
# invoke insmod with all arguments we got
# and use a pathname, as newer modutils don't look in . by default
/sbin/insmod -f /dsploader/mailbox_driver/dsp_mailbox.ko $* || exit 1
major=`cat /proc/devices | awk "\\$2==\"dsp_mailbox\" {print \\$1}"`
mknod /dev/dsp_mailbox c 252 0