#!/bin/bash
# The ndiswrapper hook - relead the ndiswrapper module
# TODO: use module_reload from PM_FUNCTIONS

. "${PM_FUNCTIONS}"

command_exists /usr/sbin/ndiswrapper || return $NA

case "$1" in
    resume|thaw)
        modprobe -r ndiswrapper
        modprobe ndiswrapper
        ;;
    *) exit $NA
        ;;
esac
