build: Use $HOME/ path for errs12.
[nethome.git] / bin / ppp9k
index 79169a5..e40a7e8 100755 (executable)
--- a/bin/ppp9k
+++ b/bin/ppp9k
@@ -1,6 +1,17 @@
 #!/bin/sh
 #
 # $Id$
+# written by Jan Kratochvil <short@ucw.cz>
+#
+# Note to users of:
+#       Linux running INSIDE VMWare (e.g. on Win32 machine)
+#   and internet connection through local ethernet card:
+# You MUST enable masquerading (NAT) for your Communicator's IP address!
+#   iptables -t nat -F
+#   iptables -t nat -A POSTROUTING --source 192.168.90.1 -j MASQUERADE
+# (replace 192.168.90.1 by your $NOKIA9K setting below, if you change it)
+#  - problem investigation by courtesy of Hussain Akbar <Hussain@systemsltd.com>
+
 
 # IP address for N9K, "192.168.90.1" if not provided (either here or from
 # some ~/.profile etc.)
@@ -38,6 +49,12 @@ PORT="${PORT:-ttyS1}"
 if [ "${PORT#*/}" = "$PORT" ];then PORT="/dev/$PORT";fi
 NOKIABAUD="${NOKIABAUD:-19200}"
 
+# Some rules for the chat script:
+# 9000i starts with: ATZ, AT&F  (the need for TIMEOUT 2, "-OK^M^J-AT&F")
+# 9110  starts with:      AT&F
+# user can have global     custom initialization string (need for one "OK^M^J")
+# user can have connection custom initialization string (need for one "OK^M^J")
+
 (trap "" HUP
        while [ '!' -f "$pid" ];do sleep 1;done
        me="`cat "$pid"`"