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

Origin commit data
------------------
Branch: ni/coolstream
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

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2012-07-25 11:25:05 +02:00
parent 0235052308
commit 79ee52d967
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