--- NStun.sh.orig	2008-09-04 06:44:23.000000000 -0400
+++ NStun.sh	2009-10-08 12:58:28.000000000 -0400
@@ -19,7 +19,7 @@
 #### EDIT HERE ####
 
 # Path to your iodine executable
-IOD="/usr/local/sbin/iodine"
+IOD="/usr/sbin/iodine"
 
 # Your top domain
 IOTD="example.ircpimps.org"
@@ -30,7 +30,7 @@
 # You might need to change this if you use linux, or already have 
 # tunnels running.  In linux iodine uses dnsX and fbsd/osX use tunX
 # X represents how many tunnel interfaces exist, starting at 0
-IODEV="tun0"
+IODEV="dns0"
 
 # The IP your iodined server uses inside the tunnel
 # The man page calls this tunnel_ip
@@ -39,7 +39,7 @@
 
 #### STOP EDITING ####
 
-NS=`grep nameserver /etc/resolv.conf|head -1|awk '{print $2}'`
+NS=`grep nameserver /tmp/resolv.conf.wlan0|head -1|awk '{print $2}'`
 GW=`netstat -rn|grep -v Gateway|grep G|awk '{print $2}'`
 OS=`uname`
 [ -z $IOPASS ] && echo "Enter your iodine password"
@@ -67,7 +67,7 @@
  echo "Press enter when you are done with iodine"
  echo "and you want your routes back to normal"
  read yourmind
- kill -9 `ps auxw|grep iodine|grep -v grep|awk '{print $2}'`
+ kill -9 `ps auxw|grep iodine|grep -v grep|awk '{print $1}'`
          case "$OS" in
         Darwin|*BSD)
                 route delete default
@@ -75,7 +75,7 @@
                 route add default -gateway $GW
                 ;;
         Linux)
-                route del default
+#               route del default
                 route delete $NS
                 route add default gw $GW
                 ;;
