Update storage-test.sh
This commit is contained in:
@@ -104,13 +104,13 @@ IO4kRandWrite=0
|
|||||||
# Did the user give a folder ?
|
# Did the user give a folder ?
|
||||||
ChosenPartition=""
|
ChosenPartition=""
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
# User did not provide a partition/folder, change directory to rootfs
|
df=0; declare -A driveSel
|
||||||
df=0
|
|
||||||
drives="$(/bin/df -kTh | grep ext4)"
|
drives="$(/bin/df -kTh | grep ext4)"
|
||||||
echo "$drives"
|
|
||||||
echo "$drives" | while IFS= read -r line ; do
|
echo "$drives" | while IFS= read -r line ; do
|
||||||
((df++))
|
((df++))
|
||||||
echo "$df) $line"
|
path=$(echo $line | cut -d'%' -f2)
|
||||||
|
${driveSel[${df}]}=${path// }
|
||||||
|
echo "$df) ${path// }"
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user