Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 74 - (hide annotations)
Sun Jul 3 01:27:41 2011 UTC (22 months, 2 weeks ago) by acrux
File size: 1244 byte(s)
synced with 2.7a test1
1 cjg 2 #!/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 acrux 53 # CRUX PPC - 32bit Release
11 cjg 2
12 acrux 53 # Apple Power Mac, Xserve G4
13 cjg 31 if stty -F /dev/ttyPZ0 > /dev/null 2>&1; then
14 acrux 53 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 cjg 31 elif stty -F /dev/ttyS0 > /dev/null 2>&1; then
20 acrux 74 # serial console - Acube Sam440ep, Sam440ep-flex
21     if [ "`cat /proc/cpuinfo | grep 440EP`" != "" ]; then
22 acrux 53 exec /sbin/agetty 115200 ttyS0 vt100
23 acrux 74 # serial console - Acube Sam460ex
24     elif [ "`cat /proc/cpuinfo | grep 460EX`" != "" ]; then
25     exec /sbin/agetty 115200 ttyS0 vt100
26 acrux 53 # serial console - IBM CHRP
27 cjg 31 elif [ "`cat /proc/cpuinfo | grep CHRP`" != "" ]; then
28     exec /sbin/agetty 9600 ttyS0 vt100
29 acrux 53 else
30     # serial console - unknown generic
31     exec /sbin/agetty 38400 ttyS0 vt100
32     fi
33 cjg 2 else
34 acrux 53 exec /bin/sleep 365d
35 cjg 2 fi
36    
37 acrux 53 # End Of File
38    

Properties

Name Value
svn:executable *