1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 16:16:16 +04:00

Update default shell.

This commit is contained in:
Yuhao Zhou 2019-05-07 00:47:10 +08:00
parent 87d4027221
commit 59c1746491

View File

@ -6,7 +6,7 @@ use crate::process::*;
use alloc::string::String;
use alloc::vec::Vec;
#[cfg(not(any(feature = "run_cmdline", feature = "board_thinpad")))]
#[cfg(not(feature = "run_cmdline"))]
pub fn add_user_shell() {
// the busybox of alpine linux can not transfer env vars into child process
// Now we use busybox from
@ -38,21 +38,6 @@ pub fn add_user_shell() {
}
}
#[cfg(feature = "board_thinpad")]
pub fn add_user_shell() {
use crate::fs::INodeExt;
if let Ok(inode) = ROOT_INODE.lookup("sh") {
processor().manager().add(Thread::new_user(
&inode,
"sh",
vec!["sh".into()],
Vec::new(),
));
} else {
processor().manager().add(Thread::new_kernel(shell, 0));
}
}
#[cfg(feature = "run_cmdline")]
pub fn add_user_shell() {
use crate::drivers::CMDLINE;