2012/8/2 Gordan Bobic <[email protected]>: >> Finally, I've created a dedicated /etc/init/ttyAMA.conf file to run getty >> on my serial port. > > Did that really work? Just adding a ttyAMA.conf file? I thought you would > need to change the start-tty.conf.
Yes, it really works. Just adding a new *.conf file runs new service for the "upstart" manager. You can also use `inictl reload-configuration` to re-initialize. See "man initctl". There is two cosmetis issues: 1) getty on this serial line is reloading twice on system shutdown (runlevel change and respawn combination ?) 2) Not sure it will run getty on this console in rescue mode http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-rescuemode.html > I wonder what might be the best way to roll this into > the distro. Options: > > 1) Modify initscripts package > 2) Add an additional package > 3) Loose file in the rootfs. Serial consoles and their name depends of the platform hardware and shoud go into specific kernel or hwplatform RPMs (IMHO). As I see, some platforms will requre additional packages like NVRAM reader/writer, firmware modules, e.t.c. As a complete solution, the curses or CLI "upstart manager" should exists, like `ntsysv` or `chkconfig` for the SysVinit. > Has anyone checked how ttyAMA devices are handled in latest Fedora? Unfortunately, Fedora 17 uses "systemd" initialization system instad of "upstart" and "SysVinit". Yes, Fedora team has changed it again. -- -=AV=- _______________________________________________ users mailing list [email protected] http://lists.redsleeve.org/mailman/listinfo/users
