/[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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 75 by dpavlin, Sun May 17 11:35:41 2009 UTC revision 76 by dpavlin, Sun May 17 11:50:30 2009 UTC
# Line 10  if ! grep ttyS1 /etc/inittab | grep -v ^ Line 10  if ! grep ttyS1 /etc/inittab | grep -v ^
10  fi  fi
11    
12  ps ax | grep $ttyS | grep -v grep  ps ax | grep $ttyS | grep -v grep
13    
14    grub=/boot/grub/menu.lst
15    
16    if ! grep '^# kopt=' $grub | grep console= ; then
17            cat $grub | sed "s/^\(# kopt=.*\)$/\1 console=$ttyS,115200/" > $grub.serial
18            diff -urw $grub $grub.serial
19    fi

Legend:
Removed from v.75  
changed lines
  Added in v.76

  ViewVC Help
Powered by ViewVC 1.1.26