#!/bin/sh
set -e

DRIVERS=`find /lib/modules/ -name lt_modem.o  -mindepth 3 -maxdepth 5`
if test -z "$DRIVERS" ; then
cat<<END

  All ltmodem drivers have been removed from the System.
  You may choose to additional remove the support package:  winmodemlt
  However, it has utilities and information you may wish to keep for other purposes.

  If you choose to retain winmodemlt and are also installing a different type of modem,
  it is advisable to remove manually the following two files:
     /etc/modutils/ltmodem2
     /etc/devfs/conf.d/ltmodem2
  They contain lines with  /dev/modem  which could interfere with functionality
  of a new modem installation.

END

fi
