Added columns at 30-hdd-temp
This commit is contained in:
0
10-display-name
Normal file → Executable file
0
10-display-name
Normal file → Executable file
0
20-sysinfo
Normal file → Executable file
0
20-sysinfo
Normal file → Executable file
2
30-hdd-free
Normal file → Executable file
2
30-hdd-free
Normal file → Executable file
@@ -7,7 +7,7 @@ clear="\e[39m\e[0m"
|
||||
dim="\e[2m"
|
||||
barclear=""
|
||||
echo
|
||||
|
||||
echo 'HDD free:'
|
||||
for point in "${mountpoints[@]}"; do
|
||||
line=$(df -hl "${point}")
|
||||
usagePercent=$(echo "$line"|tail -n1|awk '{print $5;}'|sed 's/%//')
|
||||
|
||||
4
30-hdd-temp
Normal file → Executable file
4
30-hdd-temp
Normal file → Executable file
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
sd=(sda sdb sdc sdd sde sdf)
|
||||
out=""
|
||||
COLUMNS=3
|
||||
clear="\e[0m\e[39m"
|
||||
|
||||
my_target_temp=45
|
||||
@@ -12,6 +13,9 @@ for i in ${!sd[@]}; do
|
||||
fi
|
||||
out+="${sd[$i]} \e[30m $color $temp $clear ,"
|
||||
c=i+1
|
||||
if [ $((($i+1) % $COLUMNS)) -eq 0 ]; then
|
||||
out+="\n"
|
||||
fi
|
||||
done
|
||||
out+="\n"
|
||||
echo -e "
|
||||
|
||||
0
40-services
Normal file → Executable file
0
40-services
Normal file → Executable file
0
50-flexget
Normal file → Executable file
0
50-flexget
Normal file → Executable file
Reference in New Issue
Block a user