init: Add some rudimentary support for SLIP interfaces.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 19 Apr 2010 21:01:00 +0000 (22:01 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 19 Apr 2010 21:43:19 +0000 (22:43 +0100)
This isn't strictly necessary, but it's probaby good form for those
systems which aren't as fortunate.

init/tripe.conf

index daa42ad..a277207 100644 (file)
 ## `./tripectl.pid' (relative to $TRIPEDIR).
 ##
 #pidfile=/var/run/tripectl.pid
+
+## How to open SLIP interfaces.  The value is a sequece of zero or more
+## static allocations, followed optionally by the name of a dynamic
+## allocation script, all separated by colons.  A static allocation has the
+## form `INFD[,OUTFD]=IFNAME', declaring that the interface IFNAME can be
+## read from file descriptor INFD and written from file descriptor OUTFD
+## (defaults to the same as INFD).  The dynamic allocation script name must
+## begin with `/' or `.' (interpreted relative to $TRIPEDIR); the script must
+## write an interface name to standard output followed by a newline, and
+## thereafter speak SLIP over standard input/output; stdin will be closed
+## (and the script process sent SIGTERM) when the interface is no longer
+## needed.
+##
+#TRIPE_SLIPIF=