Add kernel info to /sys

This commit is contained in:
Michael De Roover 2021-04-06 15:56:11 +02:00
parent a23a6a1dfb
commit 3da63a7350
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -250,10 +250,12 @@ sys(){
ups=$(cut -d. -f1 < /proc/uptime)
upd=$(bc <<< "$ups / 60 / 60 / 24")
disk=$(df -h / | tail -n1 | awk '{print $3}')
kernel=$(uname -r)
load=$(cut -d' ' -f1,2,3 < /proc/loadavg)
sendmsg "*System usage stats:*
*Memory:* ${mem}M
*Disk:* ${disk}
*Kernel:* ${kernel}
*Uptime:* ${upd}d
*Load:* ${load}"
}