Ignore:
Timestamp:
Jan 4, 2012, 7:46:39 AM (14 years ago)
Author:
obi
Message:

[ipk] update all swap/titan flash ipks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titanskins_ufs912/CONTROL/preinst

    r12642 r12781  
    22#
    33TMP=/tmp/.titanskin
    4 echo "syncing disk"
    5 sync
    64
    75model=`cat /etc/model`
     
    2119        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    2220        FREE=`expr $SPACE - 100`
    23         SIZE=1830
     21        SIZE=972
    2422        echo "checking freespace"
    25         echo package size $SIZE kb
     23        echo packege size $SIZE kb
    2624        echo freespace size $FREE kb
    2725        if  [ "$FREE" -lt "$SIZE" ]; then
     
    2927                exit 1
    3028        else
    31                 echo ok
     29                echo ok         
    3230        fi
    33 fi
     31else
     32        echo "syncing disk"
     33        sync
     34fi
    3435
    3536buildgroup=`cat /etc/.buildgroup`
Note: See TracChangeset for help on using the changeset viewer.