-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: cli: add autologin function #62
Conversation
@RadxaYuntian 先提交cli部分,接口稳定了再写tui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TUI的操作流程应该是这样:
- 检测可以被配置的选项(查询enabled的getty服务,检查哪些窗口管理器被安装)
- 一个checklist选择需要开启的选项,并标记哪些服务已经开启(简单grep一下对应关键词就好)
- 一个inputbox选择对应的用户(默认填入当前用户名)
基于这个流程,CLI应该提供一个统一的入口set_autologin_status
,需要接收需配置的服务、登陆用户、以及状态;以及一个get_autologin_status
,来查询当前状态。
另外点了request review后就禁止force push了,写了一半告诉我diff失效无法提交 |
另外cli应该能安全的反复执行,比如多次on或多次off。TUI这边应该是一个循环内按照是否选中来全部都重新设置一遍,而不会去单独检查服务此前的状态。 |
#65 有一些获取当前用户的脚本,可以参考 |
librtui的更新先拆出去一个pr吧,这样panda那边也可以用上 |
好的 |
刚刚注意到有一个__user_enable_auto_login 这是我目前用来在串口自动登陆的命令
|
这个自动登陆的tui需要暴露出来供oem配置使用 |
6788d06
to
c8159e8
Compare
修改了一些地方,麻烦测试一下 |
另外我们其实已有一个TUI了,也修改了一下来使用新的函数 |
已测试,checklisth只有gdm, 可以正常开关autologin |
这个是按照开启的服务来的,应该也有两个getty的才对 |
@RadxaYuntian request a review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase 一下吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一开始使用获取真实用户的utils需要更新,现在直接使用 |
No description provided.