Browse Source

Added more info that is useful for debugging

pull/1038/head
Daniel Gibbs 9 years ago
parent
commit
8107e68621
  1. 34
      lgsm/functions/command_debug.sh

34
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

Loading…
Cancel
Save