From 78bd39d3e40c677fc92fd22193f640d32d6e04b5 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 18 Oct 2018 19:05:23 +0200 Subject: [PATCH] mute output error --- home.admin/00infoBlitz.sh | 10 +--------- home.admin/assets/litecoin.conf | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index 6735b824a..419c2c587 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -41,15 +41,7 @@ else color_ram=${color_green} fi -# get storage -sd_free_ratio=$(printf "%d" "$(df -h | grep "/$" | awk '{ print $4/$2*100 }')") 2>/dev/null -sd=$(printf "%s (%s%%)" "$(df -h | grep '/$' | awk '{ print $4 }')" "${sd_free_ratio}") -if [ ${sd_free_ratio} -lt 10 ]; then - color_sd="${color_red}" -else - color_sd=${color_green} -fi - +# get free HDD ratio hdd_free_ratio=$(printf "%d" "$(df -h | grep '/mnt/hdd$' | awk '{ print $4/$2*100 }')" 2>/dev/null) hdd=$(printf "%s (%s%%)" "$(df -h | grep '/mnt/hdd$' | awk '{ print $4 }')" "${hdd_free_ratio}") diff --git a/home.admin/assets/litecoin.conf b/home.admin/assets/litecoin.conf index 4a1adf0c4..875c33ad5 100755 --- a/home.admin/assets/litecoin.conf +++ b/home.admin/assets/litecoin.conf @@ -3,7 +3,7 @@ # mainnet/testnet - to switch just comment/uncomment #testnet=1 -# Bitcoind options +# litcoind options server=1 daemon=1 txindex=1