y-web: fix mtd_space in Y_Tools.sh

Origin commit data
------------------
Branch: ni/coolstream
Commit: ba0999d5cb
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-10-02 (Sun, 02 Oct 2022)

Origin message was:
------------------
- y-web: fix mtd_space in Y_Tools.sh

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-10-02 23:17:00 +02:00
parent 8308b14a7d
commit 8f797f8b19

View File

@@ -531,11 +531,17 @@ case "$1" in
res=`wget -O /tmp/$2 "$1" >/tmp/url.log 2>&1`
cat /tmp/$2
;;
mtd_space|var_space)
df | while read fs rest; do
mtd_space)
df | while read filesystem blocks used available percent mounted ; do
case ${fs:0:3} in
mtd)
echo "$fs" "$rest"
echo "$filesystem" "$blocks" "$used" "$available" "$percent" "$mounted"
break
;;
esac
case $mounted in
"/")
echo "$filesystem" "$blocks" "$used" "$available" "$percent" "$mounted"
break
;;
esac