projects
/
sysadmin-cookbook
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add console option to kernel
[sysadmin-cookbook]
/
recepies
/
amt
/
serial-console.sh
diff --git
a/recepies/amt/serial-console.sh
b/recepies/amt/serial-console.sh
index
25785ad
..
ea7d226
100755
(executable)
--- a/
recepies/amt/serial-console.sh
+++ b/
recepies/amt/serial-console.sh
@@
-10,3
+10,10
@@
if ! grep ttyS1 /etc/inittab | grep -v ^# ; then
fi
ps ax | grep $ttyS | grep -v grep
+
+grub=/boot/grub/menu.lst
+
+if ! grep '^# kopt=' $grub | grep console= ; then
+ cat $grub | sed "s/^\(# kopt=.*\)$/\1 console=$ttyS,115200/" > $grub.serial
+ diff -urw $grub $grub.serial
+fi