Dell M1330 with Ubuntu 8.10 Intrepid Ibex tethering with iPhone + PdaNet

I now have my m1330 tethering with a jailbroken iPhone 3G (running PdaNet).

After installing the iwl3945 driver instead of ipw3945 my system can now connect to ad-hoc networks.

So I was able to use a script as posted here by iblanken (thanks mate):

The only change for Ubuntu 8.10 is to use /etc/init.d/NetworkManager instead of 25NetworkManager.

First interests sake here’s my scripts:


# pdanet_up
sudo /etc/init.d/NetworkManager stop
sudo ifconfig eth1 down
sudo iwconfig eth1 mode ad-hoc
sudo iwconfig eth1 channel 4
sudo iwconfig eth1 essid 'JiPhoneTether'
#sudo iwconfig eth1 key 0123-4567-89
sudo iwconfig eth1 key off
sudo ifconfig eth1 up
echo Press Enter when iPhone is connected to Network and PDANet is started
read foo
sudo dhclient eth1
#DNS=`grep nameserver /etc/resolv.conf | head -1 | awk '{print $2}'`
#dig @$DNS


# pdanet_down
sudo ifconfig eth1 down
sudo iwconfig eth1 mode managed
sudo ifconfig eth1 up
sudo /etc/init.d/NetworkManager start