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/postinst

    r16975 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.games
     2INSTDIR="$1"
    33
    4 echo "successfully installed"
    5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    6         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     4if [ "/var/swap" == "$INSTDIR" ]; then
     5        echo "syncing disk"
     6        sync
     7else
     8        SPACE=`getfreespace "$INSTDIR"`
    79        FREE=`expr $SPACE - 100`
    810        echo new freespace size $FREE kb
    9 else
    10         echo "syncing disk"
    11         sync
    1211fi
    1312exit 0
Note: See TracChangeset for help on using the changeset viewer.