From 2c2e9fb5ada71e150d97e0ee22ecd5912d03b64b Mon Sep 17 00:00:00 2001 From: gbaconni Date: Thu, 4 Nov 2021 17:04:13 +0100 Subject: [PATCH] 2021-11-04 17:04:13 --- .monitoring.sh.swp | Bin 12288 -> 12288 bytes monitoring.sh | 13 ++++++++++--- test.sh | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 test.sh diff --git a/.monitoring.sh.swp b/.monitoring.sh.swp index 8b0b727653f91d04e2c95caba087cc03dd5bf2cb..35c827819c545d3c3b7dbcf3e33254c4be48ee36 100644 GIT binary patch delta 343 zcmZojXh={*+X{+698j}a z8w0U65Gw$&I1uvzF(VLv1seSdi0=dORUp0$#Fv2h6c8T*;)6g8vVJ!ZuLWWt*t}fv z4D&<-k;%oXI+G`;@&hp+qsioXs;!d?)$}KCQJdt*S)P%Zld4dVnUbHTpj)Ako1d3i zl3$dWm#$Zwppa/dev/null 2>&1; do sleep 0.1; done cat ${temp} > /usr/local/bin/monitoring.sh fi rm -f ${temp} @@ -70,10 +69,18 @@ ft_update () main () { test -f /etc/default/monitoring && source /etc/default/monitoring - if [ "${MONITORING}" != "yes" ] + if [ "${MONITORING}" != "yes" ] || [ "${1}" != "" ] then return 0 fi + if [ "${1}" == "-f" ] + then + while [ 1 ] + do + ${0} + sleep 3 + done + fi ft_arch ft_cpu ft_memory diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..997db66 --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +sleep 3600