From 8107e68621a5cd3bc2fe65730dcde376bff9ce51 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 Aug 2016 23:31:56 +0100 Subject: [PATCH] Added more info that is useful for debugging --- lgsm/functions/command_debug.sh | 34 +++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/command_debug.sh b/lgsm/functions/command_debug.sh index 79dc4a4d5..e36e4fd0a 100644 --- a/lgsm/functions/command_debug.sh +++ b/lgsm/functions/command_debug.sh @@ -28,10 +28,36 @@ echo "" echo "${gamename} Debug" echo "=================================" echo "" -echo -e "Distro: ${distroname}" -echo -e "Arch: ${arch}" -echo -e "Kernel: ${kernel}" -echo -e "Hostname: $HOSTNAME" +echo -e "${blue}Distro:\t${default}${distroname}" +echo -e "${blue}Arch:\t${default}${arch}" +echo -e "${blue}Kernel:\t${default}${kernel}" +echo -e "${blue}Hostname:\t${default}$HOSTNAME" +echo -e "${blue}tmux:\t${default}${tmuxv}" +echo -e "${blue}Avg Load:\t${default}${load}" +echo -e "${blue}Free Memory:\t${default}${physmemfree}" +echo -e "${blue}Free Disk:\t${default}${availspace}" +# GLIBC required +if [ -n "${glibcrequired}" ]; then + if [ "${glibcrequired}" == "NOT REQUIRED" ]; then + : + elif [ "${glibcrequired}" == "UNKNOWN" ]; then + echo -e "${blue}GLIBC required:\t${red}${glibcrequired}" + elif [ "$(printf '%s\n'${glibcrequired}'\n' ${glibcversion} | sort -V | head -n 1)" != "${glibcrequired}" ]; then + if [ "${glibcfix}" == "yes" ]; then + echo -e "${blue}GLIBC required:\t${red}${glibcrequired} ${default}(${green}Using GLIBC fix${default})" + else + echo -e "${blue}GLIBC required:\t${red}${glibcrequired} ${default}(${red}GLIBC version too old${default})" + fi + else + echo -e "${blue}GLIBC required:\t${green}${glibcrequired}${default}" + fi +fi +# Server ip +echo -e "${blue}Server IP:\t${default}${ip}:${port}" +# Server password +if [ -n "${serverpassword}" ]; then + echo -e "${blue}Server password:\t${default}${serverpassword}" +fi echo "" echo "Start parameters:" if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then