Add kernel info to /sys
This commit is contained in:
parent
a23a6a1dfb
commit
3da63a7350
@ -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}"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user