/[sysadmin-cookbook]/recepies/amt/serial-console.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /recepies/amt/serial-console.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75 - (hide annotations)
Sun May 17 11:35:41 2009 UTC (14 years, 11 months ago) by dpavlin
File MIME type: application/x-sh
File size: 292 byte(s)
add serial console as described in amt-howto

1 dpavlin 75 #!/bin/sh -x
2    
3     # add AMT serial console to inittab
4    
5     ttyS=`dmesg | grep ttyS | grep 0xe | sed 's/^.*\(ttyS[0-9]\).*$/\1/'`
6    
7     if ! grep ttyS1 /etc/inittab | grep -v ^# ; then
8     echo "Am:2345:respawn:/sbin/getty $ttyS 115200 vt100-nav" >> /etc/inittab
9     init q
10     fi
11    
12     ps ax | grep $ttyS | grep -v grep

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26