Browse Source

Plan 9 from Bell Labs 2009-05-28

David du Colombier 15 years ago
parent
commit
29ce60e635
4 changed files with 133 additions and 50 deletions
  1. 15 0
      lib/vgadb
  2. 10 1
      mail/lib/pipeto.lib
  3. 5 1
      sys/man/1/mail
  4. 103 48
      sys/man/8/cec

+ 15 - 0
lib/vgadb

@@ -631,6 +631,21 @@ dell2001fp=1600x1200
 	shb=1624 ehb=1976 ht=2160
 	shb=1624 ehb=1976 ht=2160
 	vrs=1201 vre=1204 vt=1250
 	vrs=1201 vre=1204 vt=1250
 
 
+#
+# Dell 2007FP at 1600x1200
+#
+# Horz=30-81kHz
+# Vert=56-76Hz, 1600x1200 at 60Hz only 
+#
+dell2007fp
+	videobw=200					# actually 162
+	alias=multisync
+dell2007fp=1600x1200					# 60Hz, 75KHz
+	defaultclock=160
+	shb=1864 ehb=1888 ht=2144
+	shs=1648
+	vrs=1202 vre=1208 vt=1240
+
 #
 #
 # EIZO (Nanao) FlexScan 6600 (greyscale)
 # EIZO (Nanao) FlexScan 6600 (greyscale)
 #
 #

+ 10 - 1
mail/lib/pipeto.lib

@@ -34,7 +34,16 @@ fn gonefishing {
 			message=gone.msg
 			message=gone.msg
 			if (! test -e $message)
 			if (! test -e $message)
 				message=/mail/lib/gone.msg
 				message=/mail/lib/gone.msg
-			mail $MAILTO <$message
+
+			# only respond if $USER is mentioned in To: or cc:
+			# header.  this avoids autoresponding to mailing lists.
+			tohdr=`{cat $D/to}
+			cchdr=`{cat $D/cc}
+			if (~ $"tohdr $USER@* *!$USER $USER ||
+			    ~ $"cchdr $USER@* *!$USER $USER)
+				mail $MAILTO <$message
+			if not
+				status=''
 		}
 		}
 	}
 	}
 	if not
 	if not

+ 5 - 1
sys/man/1/mail

@@ -90,7 +90,11 @@ If
 .B /mail/box/$user/gone.msg
 .B /mail/box/$user/gone.msg
 exists, it
 exists, it
 will be sent (just once) to everyone who
 will be sent (just once) to everyone who
-sends you mail;
+sends you mail that lists your address in a
+.L To
+or
+.L Cc
+header;
 if not,
 if not,
 .B /mail/lib/gone.msg
 .B /mail/lib/gone.msg
 will be sent.
 will be sent.

+ 103 - 48
sys/man/8/cec

@@ -4,44 +4,56 @@ cec \- Coraid Ethernet Console
 .SH SYNOPSIS
 .SH SYNOPSIS
 .B cec
 .B cec
 [
 [
-.B -d
+.B -dp
+] [
+.B -S
+.I srv
+] [
+.B -c
+.I esc
+] [
+.B -e
+.I ea
 ] [
 ] [
+.B -h
+.I host
+[
 .B -s
 .B -s
 .I shelf
 .I shelf
 ] [
 ] [
-.B -e
-.I esc
-]
 .I interface
 .I interface
+]
 .SH DESCRIPTION
 .SH DESCRIPTION
-The
-.I cec
-command uses raw Ethernet frames to connect to a CEC
-server for console access.  All clients share the same session.  Coraid
-appliances are currently the only CEC servers.
+.I Cec
+uses raw Ethernet packets to connect to a CEC server for console access.
+All clients share the same session.
+Coraid appliances and Coraid Plan 9 kernels can currently be CEC servers.
 .PP
 .PP
-A
+.I Cec
+starts by probing the specified network interface
+for available CEC servers.  The default is
+.BR /net/ether0 .
+Only one
 .I cec
 .I cec
-process starts by probing the specified network interface
-(e.g.,
-.LR /net/ether0 )
-for available CEC servers.  If the shelf address of the server is
-specified with the
+process may be run per Ethernet interface.
+If the server is specified with the
+.BR -b ,
+.BR -h ,
+or
 .B -s
 .B -s
-flag, the connection will
+options, communication will
 proceed immediately upon discovery of the first CEC server
 proceed immediately upon discovery of the first CEC server
-with this shelf address.  Otherwise, a selection prompt
+with the specified address.
+Otherwise, a selection prompt
 will be displayed showing the discovered CEC servers
 will be displayed showing the discovered CEC servers
-available for communication.  If no servers are discovered,
+available for communication.  Unless the
+.B -p
+option is specified,
 .I cec
 .I cec
-exits.
-.IP
-.EX
-0 5 003048865f1e shelf5
-[#qp]:
-.EE
-.LP
+exits if no matching servers are found.
 The selection prompt accepts
 The selection prompt accepts
+.LP
+.TF "\fInumber "
 .TP
 .TP
 .I number
 .I number
 Connect to server
 Connect to server
@@ -53,46 +65,89 @@ Probe the interface again, and
 .TP
 .TP
 .B q
 .B q
 Quit.
 Quit.
+.PD
 .PP
 .PP
 Note the selection number is not the shelf address but the
 Note the selection number is not the shelf address but the
 .IR cec -generated
 .IR cec -generated
-ID number printed in the leftmost column.
+sequence number printed in the leftmost column.
 .PP
 .PP
-Once connected to a CEC server, entering the escape sequence
-will drop the user into an escape prompt where the user may
-type
+Once connected to a CEC server, typing the escape character
+will drop the user into an escape prompt where the user may type
 .L q
 .L q
 to quit the connection,
 to quit the connection,
 .L i
 .L i
-to send the escape sequence
+to send the escape character
 across the connection, or
 across the connection, or
 .L .
 .L .
 to continue the connection.
 to continue the connection.
-The escape sequence is printed on connection.
+.SS Options
+.TP
+.B -c
+Set the escape character to
+.RI control- esc .
+The default setting is control-\e.
+.TP
+.B -d
+Print debugging information.
+.TP
+.B -e
+Connect to the server with Ethernet address
+.IR ea ;
+implies
+.BR -p .
+.TP
+.B -h
+Connect to the server
+.IR host .
+Note that this name might not be the same as the contents of
+.L /dev/sysname
+on the target system.
+.TP
+.B -p
+Persist: continue trying to connect even if
+there are no matching servers.  This is useful when
+connecting to a CPU server before it boots.
+.TP
+.B -s
+Connect to the server at address
+.IR shelf .
+.TP
+.B -S
+Post the CEC connection as
+.BI /srv/ srv
+to allow sharing.
 .PP
 .PP
 If the
 If the
-.B -s
-option is used,
+.BR -e ,
+.BR -s ,
+or
+.B -h
+options are given,
 .I cec
 .I cec
 will exit upon closing the connection.
 will exit upon closing the connection.
 Otherwise,
 Otherwise,
 .I cec
 .I cec
 will return to the selection prompt upon connection close.
 will return to the selection prompt upon connection close.
-.SS Options
-.TP 1i
-.B -d
-Output debugging information.
-.TP
-.BI -s " shelf"
-Connect to the server at shelf address
-.IR shelf .
-.TP
-.BI -e " esc"
-Set the escape caracter to
-.BI control -
-.IR esc .
-The default setting is
-.BR control -\e.
+.SH EXAMPLES
+.IP
+.EX
+; cec '#l1/ether1'
+ 0       1 003048679b89 
+[#qp]: 0
+
+SR shelf 1> 
+SR shelf 1> >>> q
+ 0       1 003048679b89 
+[#qp]: q
+;
+.EE
+.SH SOURCE
+.B /sys/src/cmd/cec
+.\" .SH "SEE ALSO"
+.\" .IR cec (3)
 .SH BUGS
 .SH BUGS
 The CEC protocol should be integrated with the console server.
 The CEC protocol should be integrated with the console server.
 The arbitration between the keyboard and network is suboptimal.
 The arbitration between the keyboard and network is suboptimal.
+.PP
+Early boot information and very late crash information from servers
+may be lost due to timing quirks.