#!/bin/sh

# Messages:
UNPLUGMSG="Dbranchez votre modem et pressez 'Entrer'..."
ERRORMSG="Le module n'a pu tre dcharg\nLa dsinstallation a t interrompue!"

# Try to unload module
if lsmod|grep "adiusbadsl">/dev/null; then
	stopadsl 2> /dev/null
	rmmod adiusbadsl 2> /dev/null
	if lsmod|grep adiusbadsl > /dev/null ; then
		echo $UNPLUGMSG
		read DUMMY
		rmmod adiusbadsl 2> /dev/null
		if lsmod|grep "adiusbadsl">/dev/null; then
			echo -e $ERRORMSG
			exit 1
		fi
	fi
fi
