Ignore:
Timestamp:
Sep 7, 2013, 1:42:36 PM (13 years ago)
Author:
nit
Message:

fix

File:
1 edited

Legend:

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

    r16975 r23366  
    11#!/bin/sh
    2 #
    3 TMP=/tmp/.games
     2INSTDIR="$1"
    43
    54model=`cat /etc/model`
     
    1716
    1817echo "install catcatch Plugin ..."
    19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    20         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    21         FREE=`expr $SPACE - 100`
    22         SIZE=15
    23         echo "checking freespace"
    24         echo packege size $SIZE kb
    25         echo freespace size $FREE kb
    26         if  [ "$FREE" -lt "$SIZE" ]; then
    27                 echo "sorry no freespace left on device"
    28                 exit 1
    29         else
    30                 echo ok         
    31         fi
    32 else
     18if [ "/var/swap" == "$INSTDIR" ]; then
    3319        echo "syncing disk"
    3420        sync
    3521fi
     22
    3623buildgroup=`cat /etc/.buildgroup`
    3724echo "checking OS"       
Note: See TracChangeset for help on using the changeset viewer.