码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu里设置从串口登录

时间:2015-10-16 10:05:02      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:

 

1) Create a file called /etc/init/ttyS0.conf containing the following:

 

# ttySAC0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.

start on stopped rc or RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -L 115200 ttySAC0 vt102

2) Ask upstart to start the getty

 

sudo start ttySAC0

ubuntu里设置从串口登录

标签:

原文地址:http://www.cnblogs.com/subo_peng/p/4884373.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!