From ef0a204395d859aee479caf4fa280ad7eeca9d6a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:18:35 +0100 Subject: [PATCH] Update install.func --- misc/install.func | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/misc/install.func b/misc/install.func index 0db0943e..b2c19b86 100644 --- a/misc/install.func +++ b/misc/install.func @@ -202,23 +202,6 @@ EOF msg_ok "Updated Container OS" } -# This function modifies the message of the day (motd) and SSH settings -motd_ssh() { - # Set terminal to 256-color mode - grep -qxF "export TERM='xterm-256color'" /root/.bashrc || echo "export TERM='xterm-256color'" >> /root/.bashrc - - # Get the current private IP address - IP=$(hostname -I | awk '{print $1}') # Private IP - - # Get OS information (Debian / Ubuntu) - if [ -f "/etc/os-release" ]; then - OS_NAME=$(grep ^NAME /etc/os-release | cut -d= -f2 | tr -d '"') - OS_VERSION=$(grep ^VERSION_ID /etc/os-release | cut -d= -f2 | tr -d '"') - elif [ -f "/etc/debian_version" ]; then - OS_NAME="Debian" - OS_VERSION=$(cat /etc/debian_version) - fi - # This function modifies the message of the day (motd) and SSH settings motd_ssh() { # Set terminal to 256-color mode