#!/bin/bash
# This is a wrapper for Open2X's real insmod.
# It will launch the real insmod, /sbin/insmod.open2x
# (Under busybox, modprobe is really just a softlink to insmod
#  this also handles modprobe too
#
# Before passing the command line to the real insmod, it will find
# and replace any instances of *mmuhack.o with a reference to the
# open2x-specific mmuhack since all mmuhack modules out there are
# compiled with gcc 2.95 to match the GPH kernel whereas Open2X uses
# gcc 3.4 for its kernel. 
#
/sbin/open2x/insmod ${@//*mmuhack.o/mmuhack}


