mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-10 23:28:28 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user