Ignore:
Timestamp:
Sep 10, 2013, 3:57:20 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

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

    r17800 r23624  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/zapback
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2INSTDIR="$1"
    53
    6 echo "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`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/zapback"
     5
    156exit 0
Note: See TracChangeset for help on using the changeset viewer.