#/bin/sh

# This script closes the network connection from 192.168.1.1 (my Gentoo/Athlon
# box) to 192.168.2.3 (my Familiar/Opie Linux (iPaq) PDA).  This must be run as
# root on the desktop.  It is important that the PDA is on a separate subnet.
# It is also important that USB networking and IP Forwarding are compiled into
# the kernel on the desktop.  The PDA can see the internet (without NAT), but I
# had to put a static route on my router:
#
#	Destination Network/Host	192.168.2.3
#	Subnet Mask			255.255.255.255
#	Gateway				192.168.1.1
#
#		- Brian Doob, April 2004

route del -host 192.168.2.3
ifconfig usb0 down
modprobe -r usbnet
modprobe -r uhci
echo 0 > /proc/sys/net/ipv4/ip_forward

