6 ssh_host ps ax | grep getty | tee $host/getty
7 ssh_host cat /proc/cmdline | tee $host/cmdline
9 cat $host/getty | grep ttyS0 > $host/serial_console
10 cat $host/getty | grep console > $host/console
14 #pid=`awk '{ print $1 }' $host/console`
17 ssh_host cat /etc/inittab > $host/inittab
18 grep -v ^# $host/inittab | grep console || (
19 echo "1:2345:respawn:/sbin/getty 38400 console" | tee -a $host/inittab
20 rsync $host/inittab root@$host:/etc/
21 ssh_host bak diff /etc/inittab
23 ssh_host tail -1 /var/log/daemon.log