mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
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:
@@ -531,11 +531,17 @@ case "$1" in
|
|||||||
res=`wget -O /tmp/$2 "$1" >/tmp/url.log 2>&1`
|
res=`wget -O /tmp/$2 "$1" >/tmp/url.log 2>&1`
|
||||||
cat /tmp/$2
|
cat /tmp/$2
|
||||||
;;
|
;;
|
||||||
mtd_space|var_space)
|
mtd_space)
|
||||||
df | while read fs rest; do
|
df | while read filesystem blocks used available percent mounted ; do
|
||||||
case ${fs:0:3} in
|
case ${fs:0:3} in
|
||||||
mtd)
|
mtd)
|
||||||
echo "$fs" "$rest"
|
echo "$filesystem" "$blocks" "$used" "$available" "$percent" "$mounted"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case $mounted in
|
||||||
|
"/")
|
||||||
|
echo "$filesystem" "$blocks" "$used" "$available" "$percent" "$mounted"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user