imx6 Linux4.1.15版本自动登录root用户方法
| 修改/etc/init.d/rmnologin.sh文件 在:exit 0上边添加一行/bin/login -f root 效果如下: #!/bin/sh ### BEGIN INIT INFO # Provides: rmnologin # Required-Start: $remote_fs $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Remove /etc/nologin at boot # Description: This script removes the /etc/nologin file as the # last step in the boot process, if DELAYLOGIN=yes. # If DELAYLOGIN=no, /etc/nologin was not created by # bootmisc earlier in the boot process. ### END INIT INFO if test -f /etc/nologin.boot then rm -f /etc/nologin /etc/nologin.boot fi /bin/login -f root : exit 0 |
上一篇:带默认密码的文件系统下一篇:修改内核小企鹅



