Merge pull request #2 from ElieDeloumeau/doc_and_fix

This commit is contained in:
Quentin Manfroi 2021-10-04 15:15:18 +02:00 committed by GitHub
commit 8882a51ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -6,6 +6,12 @@ Here is motd for Claranet.
![basic](examples/basic.png "basic motd")
## Requirements
Your system must use an UTF-8 locale
Ensure that your `$LANG` variable equals `xx_XX.UTF-8`
## Installation
### Banner

View File

@ -13,8 +13,6 @@ PROCESS_USER=$(echo "$PROCESS"| grep -v root | awk {'print $2'} | awk '{ SUM +=
PROCESSOR_NAME=$(grep "model name" /proc/cpuinfo | cut -d ' ' -f3- | awk {'print $0'} | head -1)
PROCESSOR_COUNT=$(grep -ioP 'processor\t:' /proc/cpuinfo | wc -l)
LOCAL_IP_ADDRESSES=$(ip address | grep -E "inet(6)? " | grep -v 127.0.0.1 | grep -v 'inet6 ::1' | awk '{print $2;}' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/\n\ /g')
# colors
W="\e[0;39m"
G="\e[1;32m"
@ -30,8 +28,7 @@ $W Uptime$dim······$undim: $W$(uptime -p)
$W Load$dim········$undim: $G$LOAD1$W (1m), $G$LOAD5$W (5m), $G$LOAD15$W (15m)
$W Processes$dim···$undim: $G$PROCESS_ROOT$W (root), $G$PROCESS_USER$W (user), $G$PROCESS_ALL$W (total)
$W CPU$dim·········$undim: $W$PROCESSOR_NAME ($G$PROCESSOR_COUNT$W vCPU)
$W Memory$dim······$undim: $G$USED$W used, $G$AVAIL$W avail, $G$TOTAL$W total
$W Local IPs$dim···$undim: $LOCAL_IP_ADDRESSES$W"
$W Memory$dim······$undim: $G$USED$W used, $G$AVAIL$W avail, $G$TOTAL$W total"
# config
max_usage=90