设为首页收藏本站
查看: 9499|回复: 0

在SAM9X5上实现免登陆,直接进入命令行

[复制链接]

137

主题

46

回帖

5014

积分

管理员

积分
5014
kaiyueperfect 发表于 2016-7-11 10:37:29 | 显示全部楼层 |阅读模式
1.Change the symbolic link to point to the busybox's getty:
    <board-shell># rm /sbin/getty
    <board-shell># ln -s /bin/busybox /sbin/getty

2.In board's /etc/inittab change the getty line to:
    S:2345:respawn:/sbin/getty 115200 ttyO2 -n -l /bin/autologin

3. Create executable /bin/autologin script with the following content:
    #!/bin/sh
    exec /bin/login -f root
and  reboot



回复

使用道具 举报

您需要登录后才可以回帖 登录

本版积分规则

Archiver|手机版|小黑屋|米尔科技论坛   

GMT+8, 2024-5-9 03:19 , Processed in 0.046483 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表