mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
mute output error
This commit is contained in:
@@ -41,15 +41,7 @@ else
|
|||||||
color_ram=${color_green}
|
color_ram=${color_green}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get storage
|
# get free HDD ratio
|
||||||
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
|
|
||||||
|
|
||||||
hdd_free_ratio=$(printf "%d" "$(df -h | grep '/mnt/hdd$' | awk '{ print $4/$2*100 }')" 2>/dev/null)
|
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}")
|
hdd=$(printf "%s (%s%%)" "$(df -h | grep '/mnt/hdd$' | awk '{ print $4 }')" "${hdd_free_ratio}")
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# mainnet/testnet - to switch just comment/uncomment
|
# mainnet/testnet - to switch just comment/uncomment
|
||||||
#testnet=1
|
#testnet=1
|
||||||
|
|
||||||
# Bitcoind options
|
# litcoind options
|
||||||
server=1
|
server=1
|
||||||
daemon=1
|
daemon=1
|
||||||
txindex=1
|
txindex=1
|
||||||
|
|||||||
Reference in New Issue
Block a user