yweb: fix 'df'-output to determinate space on mtd

Origin commit data
------------------
Commit: a4d82f0ddb
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-07-25 (Wed, 25 Jul 2012)

Origin message was:
------------------
- yweb: fix 'df'-output to determinate space on mtd
This commit is contained in:
vanhofen
2012-07-25 11:25:05 +02:00
parent 3a83b1054a
commit 50e067d864
7 changed files with 32 additions and 23 deletions

View File

@@ -622,8 +622,15 @@ case "$1" in
echo "on"
fi
;;
var_space)
df |grep mtd2
mtd_space|var_space)
df | while read fs rest; do
case ${fs:0:3} in
mtd)
echo "$fs" "$rest"
break
;;
esac
done
;;
tmp_space)
df /tmp|grep /tmp