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

开机免登陆设置实现

[复制链接]

137

主题

46

回帖

5014

积分

管理员

积分
5014
kaiyueperfect 发表于 2016-8-30 15:40:52 | 显示全部楼层 |阅读模式
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-4-26 18:45 , Processed in 0.044498 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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