1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/comms/ser2net/files/ser2net.in
Andrew Pantyukhin 93e7abf2c3 Add port comms/ser2net:
This is ser2net, a program for allowing network connections to serial
ports.  See the man page for information about using the program.

Note that ser2net supports RFC 2217 (remote control of serial port
parameters), but you must have a complient client.  The only one I
know if is kermit (http://www.columbia.edu/kermit).

WWW: http://www.sourceforge.net/projects/ser2net/

Submitted by:	Devon H. O'Dell <devon.odell@coyotepoint.com>
2006-09-04 09:26:10 +00:00

26 lines
448 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ser2net
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. %%RC_SUBR%%
name="ser2net"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/ser2net"
load_rc_config $name
: ${ser2net_enable="NO"}
: ${ser2net_flags=""}
: ${ser2net_pidfile="/var/run/ser2net.pid"}
start_cmd="/usr/sbin/daemon -p ${ser2net_pidfile} $command $rc_flags $command_args"
stop_postcmd="rm -f /var/lock/subsys/ser2net"
run_rc_command "$1"