|
@@ -2,7 +2,7 @@
|
|
|
# LGSM fn_details_distro function
|
|
# LGSM fn_details_distro function
|
|
|
# Author: Daniel Gibbs
|
|
# Author: Daniel Gibbs
|
|
|
# Website: http://gameservermanagers.com
|
|
# Website: http://gameservermanagers.com
|
|
|
-# Version: 140215
|
|
|
|
|
|
|
+# Version: 270515
|
|
|
|
|
|
|
|
# Description: Variables providing useful info on the Operating System such as disk and performace info.
|
|
# Description: Variables providing useful info on the Operating System such as disk and performace info.
|
|
|
# Used for fn_details, fn_debug and fn_email.
|
|
# Used for fn_details, fn_debug and fn_email.
|
|
@@ -64,7 +64,11 @@ days=$(( uptime/60/60/24 ))
|
|
|
|
|
|
|
|
# Disk usage
|
|
# Disk usage
|
|
|
# available space on the partition.
|
|
# available space on the partition.
|
|
|
|
|
+filesystem=$(df -hP ${rootdir} | grep -v "Filesystem" | awk '{print $1}')
|
|
|
|
|
+totalspace=$(df -hP ${rootdir} | grep -v "Filesystem" | awk '{print $2}')
|
|
|
|
|
+usedspace=$(df -hP ${rootdir} | grep -v "Filesystem" | awk '{print $3}')
|
|
|
availspace=$(df -hP ${rootdir} | grep -v "Filesystem" | awk '{print $4}')
|
|
availspace=$(df -hP ${rootdir} | grep -v "Filesystem" | awk '{print $4}')
|
|
|
|
|
+
|
|
|
# used space in serverfiles dir.
|
|
# used space in serverfiles dir.
|
|
|
serverfilesdu=$(du -sh ${serverfiles} | awk '{print $1}')
|
|
serverfilesdu=$(du -sh ${serverfiles} | awk '{print $1}')
|
|
|
if [ -z ${serverfilesdu} ]; then
|
|
if [ -z ${serverfilesdu} ]; then
|