From 7fb94ed43a814788cda019c1e77314abc1626339 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 31 Jul 2000 03:12:38 +0000 Subject: Applied mjg-0.6 patch. Started adding kdoc compliant documentation comments. Added PsiTime --- patches/README | 16 ++++++++++++++++ patches/mgetty-1.1.21-plp.diff | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 patches/README create mode 100644 patches/mgetty-1.1.21-plp.diff (limited to 'patches') diff --git a/patches/README b/patches/README new file mode 100644 index 0000000..11b7c95 --- /dev/null +++ b/patches/README @@ -0,0 +1,16 @@ +The following patches may be applied to other programs to allow them to operate +better with plptools. + +mgetty-1.1.21-plp.diff is from Christof Meerwald, and adds autodetection +support for the PLP-protocol to mgetty - thus mgetty can autodetect a +Psion connected to the serial port and execute ncpd (with the autoexit +option). Having mgetty watch the serial port makes it a lot more easy to +switch between a PLP (file transfer) and a PPP (TCP/IP) connection. Christof +used the following login.conf for mgetty: + +/AutoPPP/ - - /usr/sbin/pppd +/PLP/ - - /usr/sbin/ncpd -d -e +* - - /bin/login @ + + +-- MJG diff --git a/patches/mgetty-1.1.21-plp.diff b/patches/mgetty-1.1.21-plp.diff new file mode 100644 index 0000000..943a173 --- /dev/null +++ b/patches/mgetty-1.1.21-plp.diff @@ -0,0 +1,40 @@ +diff -ur mgetty-1.1.21/logname.c mgetty-1.1.21.new/logname.c +--- mgetty-1.1.21/logname.c Tue Sep 1 11:56:19 1998 ++++ mgetty-1.1.21.new/logname.c Sat Jan 1 17:12:11 2000 +@@ -270,6 +270,9 @@ + static int ppp_level = 0, ppp_escaped = 0; + char ppp_ch; + #endif ++#if 1 ++ static int plp_level = 0; ++#endif + + /* read character by character! */ + tio_save = *tio; +@@ -413,6 +416,26 @@ + ppp_level = 0; + ppp_escaped = 0; + } ++#endif ++#if 1 ++ if (ch == '\026') ++ { ++ plp_level = 1; ++ } ++ else if ((ch == '\020') && (plp_level == 1)) ++ { ++ plp_level = 2; ++ } ++ else if ((ch == '\002') && (plp_level == 2)) ++ { ++ strcpy (buf, "/PLP/"); ++ i=5; ++ ch = '\r'; ++ } ++ else ++ { ++ plp_level = 0; ++ } + #endif + + #ifdef JANUS -- cgit v1.2.3