Diffstat (limited to 'noncore/tools/opie-sh/scripts/diskfree.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/tools/opie-sh/scripts/diskfree.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/opie-sh/scripts/diskfree.sh b/noncore/tools/opie-sh/scripts/diskfree.sh index 6fcd709..78415e3 100755 --- a/noncore/tools/opie-sh/scripts/diskfree.sh +++ b/noncore/tools/opie-sh/scripts/diskfree.sh | |||
@@ -17,25 +17,25 @@ | |||
17 | # 20020524-5 - bugfix | 17 | # 20020524-5 - bugfix |
18 | # 20020524-1 - initial release | 18 | # 20020524-1 - initial release |
19 | 19 | ||
20 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 20 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh |
21 | 21 | ||
22 | # there must be a better way to do this with sed, but i had no time | 22 | # there must be a better way to do this with sed, but i had no time |
23 | # time to look into this yet... | 23 | # time to look into this yet... |
24 | 24 | ||
25 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 25 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" |
26 | echo "<h3>diskfree</h3> how much space is left ?<br>" | 26 | echo "<h3>diskfree</h3> how much space is left ?<br>" |
27 | echo "<p><table>" | 27 | echo "<p><table>" |
28 | 28 | ||
29 | df -Ph \ | 29 | df -h \ |
30 | | grep -v "Mounted on" \ | 30 | | grep -v "Mounted on" \ |
31 | | sed 's/ / /g' \ | 31 | | sed 's/ / /g' \ |
32 | | sed 's/ / /g' \ | 32 | | sed 's/ / /g' \ |
33 | | sed 's/ / /g' \ | 33 | | sed 's/ / /g' \ |
34 | | sed 's/ / /g' \ | 34 | | sed 's/ / /g' \ |
35 | | sed 's/ / /g' \ | 35 | | sed 's/ / /g' \ |
36 | | sed 's/ / /g' \ | 36 | | sed 's/ / /g' \ |
37 | | sed "s/ / /g" \ | 37 | | sed "s/ / /g" \ |
38 | | cut -d " " -f4- \ | 38 | | cut -d " " -f4- \ |
39 | | sed 's/ /<\/td><td>/g' \ | 39 | | sed 's/ /<\/td><td>/g' \ |
40 | | sed 's/$/<\/td><\/tr>/' \ | 40 | | sed 's/$/<\/td><\/tr>/' \ |
41 | | sed 's/^/<tr><td>/' ; echo "</table>" \ | 41 | | sed 's/^/<tr><td>/' ; echo "</table>" \ |