#!/bin/sh

NAME=tg3
VERSION=3.99d

set -e

case "$1" in
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
		moddir="/lib/modules/`uname -r`/kernel/"
      depmod
      if [ -d "/usr/src/$NAME-$VERSION" ]; then
         echo "Removing old module source..."
         rm -rf "/usr/src/$NAME-$VERSION"
      fi
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0

