mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
- yweb: fix 'df'-output to determinate space on mtd
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