#/bin/sh

# This script opens a 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

echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe uhci
sleep 1
insmod usbnet
ifconfig usb0 192.168.1.1 netmask 255.255.0.0 pointopoint 192.168.2.3 up
route add -host 192.168.2.3 usb0


