#!/bin/sh

# rendis -- re-run the NDIS stuff
#
# See
# http://dannyman.toldme.com/2005/01/05/freebsd-howto-ndisulate-windows-drivers/
# for an explanation.
#
# BSD License - copy, modify, re-distribute at will, giving credit
# wherever due.  Enjoy!
# -danny <dannyman@toldme.com>

cd /sys/modules/ndis
make && make install
cd /sys/modules/if_ndis
ndiscvt -i *.inf -s *.sys -o ndis_driver_data.h
make && make install
kldload ndis
kldload if_ndis
/etc/rc.d/dhclient restart
