Ignore:
Timestamp:
Sep 6, 2013, 7:35:22 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/swapemus_oscam_6089/CONTROL/postrm

    r23015 r23298  
    11#!/bin/sh
    22TMP=/tmp/.oscam
     3INSTDIR="$1"
    34
    4 rm -r /var/swap/bin/oscam_6089_swap
     5rm -r "$INSTDIR/bin/oscam_6089_swap"
    56
    67echo "successfully removed"
    7 link=`readlink /var/swap`
    8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    9         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     8if [ "/var/swap" == "$INSTDIR" ]; then
     9        echo "syncing disk"
     10        sync
     11else
     12        SPACE=`getfreespace "$INSTDIR"`
    1013        FREE=`expr $SPACE - 100`
    1114        echo new freespace size $FREE kb
    12 else
    13         echo "syncing disk"
    14         sync
    1515fi
    1616exit 0
Note: See TracChangeset for help on using the changeset viewer.