Update default shell.

master
Yuhao Zhou 6 years ago
parent 87d4027221
commit 59c1746491

@ -6,7 +6,7 @@ use crate::process::*;
use alloc::string::String; use alloc::string::String;
use alloc::vec::Vec; use alloc::vec::Vec;
#[cfg(not(any(feature = "run_cmdline", feature = "board_thinpad")))] #[cfg(not(feature = "run_cmdline"))]
pub fn add_user_shell() { pub fn add_user_shell() {
// the busybox of alpine linux can not transfer env vars into child process // the busybox of alpine linux can not transfer env vars into child process
// Now we use busybox from // 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")] #[cfg(feature = "run_cmdline")]
pub fn add_user_shell() { pub fn add_user_shell() {
use crate::drivers::CMDLINE; use crate::drivers::CMDLINE;

Loading…
Cancel
Save