Ignore:
Timestamp:
Dec 17, 2011, 6:59:08 PM (14 years ago)
Author:
obi
Message:

[ipk] fix titan free check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/postrm

    r12238 r12395  
    1616echo "syncing disk"
    1717sync
    18 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
    19         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
     18if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
     19        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    2020        FREE=`expr $SPACE - 100`
    2121        echo new freespace size $FREE kb
Note: See TracChangeset for help on using the changeset viewer.