From 3da63a7350937dad52016b1bea13119ddbb1f84e Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Tue, 6 Apr 2021 15:56:11 +0200 Subject: [PATCH] Add kernel info to /sys --- konata.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/konata.sh b/konata.sh index 21475c0..6ff7ee9 100755 --- a/konata.sh +++ b/konata.sh @@ -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}" }