LS-CL設定
[root@fedora-arm awi]# ls /dev/tty*
/dev/tty /dev/ttyp0 /dev/ttyp3 /dev/ttyp6 /dev/ttyp9 /dev/ttypc /dev/ttypf
/dev/ttyS0 /dev/ttyp1 /dev/ttyp4 /dev/ttyp7 /dev/ttypa /dev/ttypd
/dev/ttyS1 /dev/ttyp2 /dev/ttyp5 /dev/ttyp8 /dev/ttypb /dev/ttype
確かにないが、ttyS0で十分なのでtty[1-6] →ttyS0に変えてみる。
fedora13では /etc/sysconfig/init で設定している。
[root@fedora-arm awi]# grep tty /etc/sysconfig/*
/etc/sysconfig/init:# What ttys should gettys be started on?
/etc/sysconfig/init:ACTIVE_CONSOLES=/dev/tty[1-6]
/etc/sysconfig/initの設定が無いとき/etc/init/start-ttys.confでの設定が採用される。
[root@fedora-arm awi]# grep tty /etc/init/*
/etc/init/quit-plymouth.conf:# this completes before the getty starts.
/etc/init/serial.conf:# the proper port is in /etc/securetty, and starts the getty.
/etc/init/serial.conf:# If your serial console is not the primary console, or you want a getty
/etc/init/serial.conf:# /etc/init/tty.conf, and changing the getty line in that file.
/etc/init/serial.conf:pre-start exec /sbin/securetty $DEV
/etc/init/serial.conf:exec /sbin/agetty /dev/$DEV $SPEED vt100-nav
/etc/init/start-ttys.conf:# This service starts the configured number of gettys.
/etc/init/start-ttys.conf:env ACTIVE_CONSOLES=/dev/tty[1-6]
/etc/init/start-ttys.conf:env X_TTY=/dev/tty1
/etc/init/start-ttys.conf: for tty in $(echo $ACTIVE_CONSOLES) ; do
/etc/init/start-ttys.conf: [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue
/etc/init/start-ttys.conf: initctl start tty TTY=$tty
/etc/init/tty.conf:# tty - getty
/etc/init/tty.conf:# This service maintains a getty on the sepcified device.
/etc/init/tty.conf:exec /sbin/mingetty $TTY
どちらも設定を変える。
[root@fedora-arm awi]# vi /etc/sysconfig/init
[root@fedora-arm awi]# vi /etc/init/start-ttys.conf
[root@fedora-arm awi]# grep ttyS0 /etc/init/start-ttys.conf
env ACTIVE_CONSOLES=/dev/ttyS0
[root@fedora-arm awi]# grep ttyS0 /etc/sysconfig/init
ACTIVE_CONSOLES=/dev/ttyS0
[root@fedora-arm awi]# reboot
再起動してmessagesを再度確認する。
[root@fedora-arm awi]# view /var/log/messages
Dec 31 19:00:31 fedora-arm kernel: VFS: Mounted root (ext3 filesystem) on device 8:2.
Dec 31 19:00:31 fedora-arm kernel: Freeing init memory: 120K
Dec 31 19:00:31 fedora-arm kernel: udevd (478): /proc/478/oom_adj is deprecated, please use /proc/478/oom_score_adj instead.
Dec 31 19:00:31 fedora-arm kernel: scsi_wait_scan: version magic '2.6.39 mod_unload modversions ARMv5 ' should be '2.6.39 preempt mod_unload ARMv5 '
Dec 31 19:00:31 fedora-arm kernel: mv643xx_eth_port mv643xx_eth_port.0: eth1: link up, 100 Mb/s, full duplex, flow control disabled
Dec 31 19:00:34 fedora-arm init: serial (ttyS0) main process ended, respawning
[root@fedora-arm awi]#
問題はなくなった。
5分以上ログインしても問題は出ない。