mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-24 00:43:24 +00:00
Feat(tty): Supplement process group logic (#1139)
* 添加busybox的编译 * 完善tty job control的逻辑 * 修改copy_sighand的逻辑,符合Linux语义 * 以busybox作为启动shell去运行 * 修改setsid的逻辑 * 解决前台进程组无法处理信号的问题 * 移除ProcessBasicInfo其中的pgid和sid信息 * 修改setsid * 新增get_pcb_info * 在etc目录下新增必要的文件 * 改用busybox init作为引导程序 * 恢复dragonreach文件 * 修改busybox编译选项,能够读取环境变量 * 先让SYS_RT_SIGTIMEDWAIT返回Ok(0),能够正常进入系统 * 一些小更改 * 删除get_pcb_info * 增加对默认termios的判断 * 完成backspace的修复 * 更改inittab,在shell启动之后更改termios * 增加executable_path信息 * 补充proc下的exe链接文件以及读取逻辑 * 更改PosixTermios,使用stty完成erase的设置 * 用busybox作为引导程序 * 修改波特率的获取 * 修改函数方法 * 在baud_rate方法中添加对于cbaud的与操作 * 为rv64下的SigSet实现From<Signal> * refactor(driver): 移除`#[derive(Debug)]`并手动实现`Debug` trait 移除`VirtIOBlkDevice`、`VirtIOConsoleDevice`和`VirtIONetDevice`的`#[derive(Debug)]`,并手动实现`Debug` trait以提供更详细的调试信息。 Co-authored-by: longjin <longjin@DragonOS.org>
This commit is contained in:
4
user/sysconfig/etc/init.d/rcS
Executable file
4
user/sysconfig/etc/init.d/rcS
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
echo "[rcS] Running system init script..."
|
||||
/bin/about.elf
|
||||
/bin/busybox stty erase 127
|
27
user/sysconfig/etc/inittab
Normal file
27
user/sysconfig/etc/inittab
Normal file
@ -0,0 +1,27 @@
|
||||
# /etc/inittab
|
||||
::sysinit:busybox sh /etc/init.d/rcS # 系统初始化脚本
|
||||
|
||||
::askfirst:-/bin/busybox sh --login
|
||||
|
||||
|
||||
# /etc/inittab - 根据源码弄出来的默认inittab
|
||||
# https://code.dragonos.org.cn/xref/busybox-1.35.0/init/init.c#679
|
||||
|
||||
# # 系统初始化脚本
|
||||
# ::sysinit:/etc/init.d/rcS
|
||||
|
||||
# # askfirst shell
|
||||
# ::askfirst:-/bin/sh
|
||||
# tty2::askfirst:-/bin/sh
|
||||
# tty3::askfirst:-/bin/sh
|
||||
# tty4::askfirst:-/bin/sh
|
||||
|
||||
# # Ctrl-Alt-Del 重启
|
||||
# ::ctrlaltdel:/sbin/reboot
|
||||
|
||||
# # 系统关闭或重启前的动作
|
||||
# ::shutdown:/bin/umount -a -r
|
||||
# ::shutdown:/sbin/swapoff -a
|
||||
|
||||
# # 收到 QUIT 信号时重启 init
|
||||
# ::restart:/sbin/init
|
2
user/sysconfig/etc/profile
Normal file
2
user/sysconfig/etc/profile
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
export PATH=/bin:/usr/bin:/usr/local/bin
|
@ -6,3 +6,5 @@ Type=simple
|
||||
ExecStart=/bin/NovaShell
|
||||
Restart=always
|
||||
ExecStartPre=-/bin/about.elf
|
||||
ExecStartPre=/bin/busybox stty erase 127
|
||||
Environment=PATH=/bin:/usr/bin:/usr/local/bin
|
Reference in New Issue
Block a user