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)
|
ups=$(cut -d. -f1 < /proc/uptime)
|
||||||
upd=$(bc <<< "$ups / 60 / 60 / 24")
|
upd=$(bc <<< "$ups / 60 / 60 / 24")
|
||||||
disk=$(df -h / | tail -n1 | awk '{print $3}')
|
disk=$(df -h / | tail -n1 | awk '{print $3}')
|
||||||
|
kernel=$(uname -r)
|
||||||
load=$(cut -d' ' -f1,2,3 < /proc/loadavg)
|
load=$(cut -d' ' -f1,2,3 < /proc/loadavg)
|
||||||
sendmsg "*System usage stats:*
|
sendmsg "*System usage stats:*
|
||||||
*Memory:* ${mem}M
|
*Memory:* ${mem}M
|
||||||
*Disk:* ${disk}
|
*Disk:* ${disk}
|
||||||
|
*Kernel:* ${kernel}
|
||||||
*Uptime:* ${upd}d
|
*Uptime:* ${upd}d
|
||||||
*Load:* ${load}"
|
*Load:* ${load}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user