[Beagle Bone]

beaglebone black ubuntu系统怎么开机自动root登录,并执行自己的脚本?

[复制链接]
3652|6
手机看帖
扫描二维码
随时随地手机跟帖
rogerliu1104|  楼主 | 2015-3-17 11:31 | 显示全部楼层
没有人遇到过吗?

使用特权

评论回复
rogerliu1104|  楼主 | 2015-4-1 11:27 | 显示全部楼层
已经解决!
修改的是 /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
红色部分就是我们要开机执行的脚本
/home/ubuntu/run/run.sh   

exit 0

使用特权

评论回复
mini1986| | 2015-9-11 09:18 | 显示全部楼层
关注一下......

使用特权

评论回复
lk07828| | 2016-2-4 09:28 | 显示全部楼层
rogerliu1104 发表于 2015-4-1 11:27
已经解决!
修改的是 /etc/rc.local
#!/bin/sh -e

看着像是登录后自动执行的脚本,自动登录怎么配置的

使用特权

评论回复
rogerliu1104|  楼主 | 2016-2-18 17:21 | 显示全部楼层
lk07828 发表于 2016-2-4 09:28
看着像是登录后自动执行的脚本,自动登录怎么配置的

好像不需要登陆,时间久了记不太清了

使用特权

评论回复
cnb12345| | 2016-4-26 15:05 | 显示全部楼层

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

72

帖子

4

粉丝