x86_64: 切换默认 SHELL 为 bash

This commit is contained in:
Hyy2001X 2022-07-24 12:58:43 +08:00
parent 5c4b41c16b
commit d30fe7832a
3 changed files with 7 additions and 4 deletions

View File

@ -11,3 +11,5 @@
/etc/docker/daemon.json
/root/.config/htop
/root/.ssh
/root/.bash_history
/root/.bash_profile

View File

@ -37,7 +37,7 @@ getinf() {
temp_color() {
if [ -n "$1" ]
then
if [ $1 -gt 60 ]
if [ $1 -gt 55 ]
then
echo -ne "${Red}WARN ${1}°C${White}"
else
@ -73,9 +73,9 @@ export HOME=${HOME:-/root}
export CONFIG=/etc/config
if [ -n "${TARGET_PROFILE}" ]
then
export PS1='${Yellow}\u@\h(${TARGET_PROFILE})${White}:${Grey}\w${White}\$ '
export PS1='\u@\h[${TARGET_PROFILE}]:\w\$ '
else
export PS1='${Yellow}\u@\h${White}:${Grey}\w${White}\$ '
export PS1='\u@\h:\w\$ '
fi
export ENV=/etc/shinit
@ -103,7 +103,7 @@ then
"
fi
alias reload='/etc/profile'
alias reload='. /etc/profile'
alias coremarkd='/etc/coremark.sh'
alias shutdown='sync && poweroff'
alias ls='ls --color=auto'

View File

@ -80,6 +80,7 @@ Firmware_Diy() {
rm -rf packages/lean/autocore
AddPackage git lean autocore-modify Hyy2001X master
cat ${CustomFiles}/${TARGET_PROFILE}_kExtra >> ${WORK}/target/linux/x86/config-5.15
sed -i -- 's:/bin/ash:'/bin/bash':g' ${BASE_FILES}/etc/passwd
;;
esac
;;