#!/bin/sh
i2c=i2c  
if [ -f /lib/modules/`uname -r`/misc/i2c-core.o ]; then i2c=i2c-core ; fi
if [ -f /lib/modules/`uname -r`/kernel/drivers/i2c/i2c-core.o ]; then i2c=i2c-core ; fi
/sbin/rmmod mgadvd
/sbin/rmmod mgajpg
/sbin/rmmod i33
/sbin/rmmod mgavideo
/sbin/rmmod mgacap
/sbin/rmmod mgayuv
/sbin/rmmod i34
/sbin/rmmod mgagrab
/sbin/rmmod zr36060
/sbin/rmmod mga_core
/sbin/rmmod maven
/sbin/rmmod msp3400
/sbin/rmmod ks0127
/sbin/rmmod tuner
/sbin/rmmod videodev
/sbin/rmmod i2c-algo-ks
/sbin/rmmod $i2c
