Ignore:
Timestamp:
09/07/13 13:37:07 (11 years ago)
Author:
nit
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/fonts_actionmanitalic_1_0/CONTROL/postrm

    r12422 r23365  
    11#!/bin/sh
    2 TMP=/tmp/.fonts
     2INSTDIR="$1"
    33
    44echo "successfully removed"
    5 echo "syncing disk"
    6 sync
    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
Note: See TracChangeset for help on using the changeset viewer.