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

fix

File:
1 edited

Legend:

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

    r7451 r23365  
    11#!/bin/sh
    2 TMP=/tmp/.radiologos
     2INSTDIR="$1"
     3
    34echo "successfully removed"
    4 echo "syncing disk"
    5 sync
    6 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
    7         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
     5if [ "/var/swap" == "$INSTDIR" ]; then
     6        echo "syncing disk"
     7        sync
     8else
     9        SPACE=`getfreespace "$INSTDIR"`
    810        FREE=`expr $SPACE - 100`
    911        echo new freespace size $FREE kb
Note: See TracChangeset for help on using the changeset viewer.