File: rc.serial.m68k

package info (click to toggle)
setserial 2.14-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 232 kB
  • ctags: 64
  • sloc: ansic: 608; makefile: 100; sh: 52
file content (29 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!	/bin/sh
# /etc/rc.serial 
#	Initializes the serial ports on your system
#
# Distributed with setserial version 2.10
#

# This version of the configuration file is only suitable for
# the m680x0 series of machines. In these cases, the configuration
# process is unnecessary, but it may still be useful to output
# information about the serial configuration
#    Gordon Russell <g.russell@dcs.napier.ac.uk>
#
SETSERIAL=/bin/setserial

# if the setserial executable is unavailable then abort the configuration
[ -x ${SETSERIAL} ] || exit 0

insmod -k serial 2>/dev/null

rtn=`${SETSERIAL} -bg /dev/ttyS* >/dev/null 2>&1`
if [ $? -gt 0 ]
then
  echo "Aborting serial port reporting. Check the serial modules..."
  exit 1
fi

${SETSERIAL} -bg /dev/ttyS? /dev/ttyS?? 2>/dev/null
#