From d30fe7832aef37e2102015329fabd22ac9d3d7a1 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 24 Jul 2022 12:58:43 +0800 Subject: [PATCH] =?UTF-8?q?x86=5F64:=20=E5=88=87=E6=8D=A2=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=20SHELL=20=E4=B8=BA=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomFiles/Depends/base-files-essential | 2 ++ CustomFiles/Depends/profile | 8 ++++---- Scripts/AutoBuild_DiyScript.sh | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CustomFiles/Depends/base-files-essential b/CustomFiles/Depends/base-files-essential index c7ca9e6..52a96f6 100755 --- a/CustomFiles/Depends/base-files-essential +++ b/CustomFiles/Depends/base-files-essential @@ -11,3 +11,5 @@ /etc/docker/daemon.json /root/.config/htop /root/.ssh +/root/.bash_history +/root/.bash_profile diff --git a/CustomFiles/Depends/profile b/CustomFiles/Depends/profile index 2827578..8210979 100755 --- a/CustomFiles/Depends/profile +++ b/CustomFiles/Depends/profile @@ -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' diff --git a/Scripts/AutoBuild_DiyScript.sh b/Scripts/AutoBuild_DiyScript.sh index cfe1a40..9dd3cde 100755 --- a/Scripts/AutoBuild_DiyScript.sh +++ b/Scripts/AutoBuild_DiyScript.sh @@ -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 ;;