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

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