Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (show annotations)
Mon Oct 4 05:25:20 2010 UTC (2 years, 7 months ago) by acrux
File size: 1088 byte(s)
synced with 2.7RC0
1 #!/bin/sh
2 #
3 # /usr/bin/serial_console
4 #
5 # This script opens a tty on /dev/tts/0 if it is a valid terminal, otherwise
6 # goes to sleep for a year. This script is needed to prevent init(1) from
7 # respawning agetty over and over again on machines that don't have a serial
8 # port.
9 #
10 # CRUX PPC - 32bit Release
11
12 # Apple Power Mac, Xserve G4
13 if stty -F /dev/ttyPZ0 > /dev/null 2>&1; then
14 exec /sbin/agetty 57600 ttyPZ0 vt100
15 # generic Freescale SoC
16 elif stty -F /dev/ttyPSC0 > /dev/null 2>&1; then
17 exec /sbin/agetty 115200 ttyPSC0 vt100
18 # standard serial console
19 elif stty -F /dev/ttyS0 > /dev/null 2>&1; then
20 # serial console - Acube Sam440ep, Sam440flex
21 if [ "`uname -i | grep Sam440ep`" != "" ]; then
22 exec /sbin/agetty 115200 ttyS0 vt100
23 # serial console - IBM CHRP
24 elif [ "`cat /proc/cpuinfo | grep CHRP`" != "" ]; then
25 exec /sbin/agetty 9600 ttyS0 vt100
26 else
27 # serial console - unknown generic
28 exec /sbin/agetty 38400 ttyS0 vt100
29 fi
30 else
31 exec /bin/sleep 365d
32 fi
33
34 # End Of File
35

Properties

Name Value
svn:executable *