aboutsummaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2000-07-31 03:12:38 +0000
committerFritz Elfert <felfert@to.com>2000-07-31 03:12:38 +0000
commit7fb94ed43a814788cda019c1e77314abc1626339 (patch)
tree50b86a44e2809e6fbcdcd080f2a2dc4dbc37042e /patches
parentfbb17061d3c622f0786a5d9ad41e8ccd95ef706c (diff)
downloadplptools-7fb94ed43a814788cda019c1e77314abc1626339.tar.gz
plptools-7fb94ed43a814788cda019c1e77314abc1626339.tar.bz2
plptools-7fb94ed43a814788cda019c1e77314abc1626339.zip
Applied mjg-0.6 patch.
Started adding kdoc compliant documentation comments. Added PsiTime
Diffstat (limited to 'patches')
-rw-r--r--patches/README16
-rw-r--r--patches/mgetty-1.1.21-plp.diff40
2 files changed, 56 insertions, 0 deletions
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