From: short <> Date: Fri, 11 Jan 2002 02:35:02 +0000 (+0000) Subject: +comments section "Some rules for the chat script" to prevent future mistakes X-Git-Tag: bp_vellum_cz~2 X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=4c424df1854001e6407232f508d4285e48755c37 +comments section "Some rules for the chat script" to prevent future mistakes --- diff --git a/bin/ppp9k b/bin/ppp9k index 79169a5..1f3316f 100755 --- a/bin/ppp9k +++ b/bin/ppp9k @@ -38,6 +38,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"`"