|
Last change
on this file since 12452 was 12395, checked in by obi, 14 years ago |
|
[ipk] fix titan free check
|
-
Property svn:executable
set to
*
|
|
File size:
386 bytes
|
| Rev | Line | |
|---|
| [11861] | 1 | #!/bin/sh
|
|---|
| 2 | TMP=/tmp/.tmp
|
|---|
| 3 | echo "successfully installed"
|
|---|
| 4 | echo "syncing disk"
|
|---|
| 5 | sync
|
|---|
| 6 |
|
|---|
| [12395] | 7 | if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
|
|---|
| 8 | SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
|
|---|
| [11861] | 9 | FREE=`expr $SPACE - 100`
|
|---|
| 10 | echo new freespace size $FREE kb
|
|---|
| 11 | fi
|
|---|
| 12 |
|
|---|
| [12264] | 13 | echo "Please use GUI restart !!!!"
|
|---|
| 14 |
|
|---|
| [11861] | 15 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.