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

    r16975 r23366  
    11#!/bin/sh
    2 TMP=/tmp/.games
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/catcatch
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    64echo "successfully removed"
    7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     5if [ "/var/swap" == "$INSTDIR" ]; then
     6        echo "syncing disk"
     7        sync
     8else
     9        SPACE=`getfreespace "$INSTDIR"`
    910        FREE=`expr $SPACE - 100`
    1011        echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    1412fi
    1513exit 0
Note: See TracChangeset for help on using the changeset viewer.