#! /bin/sh
# ************************************************************************
# *                                                                      *
# *      remove_dabusb v0.1 - dabusb destroyer script                    *
# *                           by FlashCode and Crevetor (c) 14/04/2002   *
# *                                                                      *
# *          For any support, contact one of us :                        *
# *           - FlashCode: flashcode@free.fr  http://flashcode.free.fr   *
# *           - Crevetor : ziva@caramail.com                             *
# *                                                                      *
# * Traduzione : Good-it : enzo@bontempo.it                              *
# ************************************************************************

lsmod|grep dabusb
if [ $? != 0 ]; then
    echo "Dabusb non presente - nothing to do !"
else
    kernel=$(uname -r)
    mv /lib/modules/$kernel/kernel/drivers/usb/dabusb.o* dabusb.old
    echo -e "\ndabusb copiato in /lib/modules/$kernel/kernel/drivers/usb/dabusb.old"
    rmmod dabusb
    lsmod|grep dabusb
    if [ $? != 0 ]; then
        echo "dabusb rimosso con successo"
    else
        echo "Non posso rimuovere dabusb... provate con "rmmod dabusb" dopo aver scollegato il cavo del modem"
    fi
fi
