From 6e26c811bcd5863c9d7e0491d441847d845ea4c2 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sat, 27 Jan 2024 14:13:28 -0600 Subject: [PATCH] Add welcome message and system information to CasaOS Healthcheck script --- casaos-healthcheck/run.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/casaos-healthcheck/run.sh b/casaos-healthcheck/run.sh index 9784859..f5fcfee 100644 --- a/casaos-healthcheck/run.sh +++ b/casaos-healthcheck/run.sh @@ -5,6 +5,36 @@ CONFIG_FILE="/etc/casaos/gateway.ini" # Prefix for casaos services SERVICE_PREFIX="casaos" +# Display Welcome +echo "-------------------" +echo "BigBearCasaOS Healthcheck" +echo "-------------------" +echo "Here is some links" +echo "https://community.bigbeartechworld.com" +echo "https://github.com/BigBearTechWorld" +echo "-------------------" +echo "If you would like to support me, please consider buying me a tea" +echo "https://ko-fi.com/bigbeartechworld" +echo "" + +# Display system information +echo "-------------------" +echo "System Information:" +echo "-------------------" +echo "Operating System: $(lsb_release -d | cut -f 2-)" +echo "Kernel: $(uname -r)" +echo "Uptime: $(uptime -p)" +echo "Packages: $(dpkg -l | wc -l)" +echo "Shell: $SHELL" +echo "Terminal: $(basename $TERM)" +echo "CPU: $(lscpu | grep 'Model name' | cut -d ':' -f 2 | xargs)" +echo "GPU: $(lspci | grep -i --color 'vga\|3d\|2d')" +echo "Memory: $(free -h | grep Mem | awk '{print $2}') Total, $(free -h | grep Mem | awk '{print $3}') Used" +echo "" +echo "-------------------" +echo "CasaOS Healthcheck:" +echo "-------------------" + # Check if the configuration file exists if [[ -f $CONFIG_FILE ]]; then # Get the port from the configuration file