source:
ipk/source.sh4/emus_gbox_790/CONTROL/postrm@
13300
| Last change on this file since 13300 was 12781, checked in by , 14 years ago | |
|---|---|
| File size: 354 bytes | |
| Rev | Line | |
|---|---|---|
| [7451] | 1 | #!/bin/sh |
| 2 | TMP=/tmp/.keys | |
| 3 | echo "successfully removed" | |
| [12395] | 4 | if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then |
| 5 | SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` | |
| [7451] | 6 | FREE=`expr $SPACE - 100` |
| 7 | echo new freespace size $FREE kb | |
| [12781] | 8 | else |
| 9 | echo "syncing disk" | |
| 10 | sync | |
| [7451] | 11 | fi |
| 12 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)