#!/bin/bash

case $1 in
    hibernate|suspend)
	killall -9 totem-tv
	rmmod smsusb
	rmmod dvb-usb-dib0700
        ;;
    thaw|resume)
	modprobe smsusb
	modprobe dvb-usb-dib0700
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac
