Ignore:
Timestamp:
09/08/13 17:41:17 (11 years ago)
Author:
gost
Message:

[plugin] autotimer new tpk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titantools_autotimer/CONTROL/prerm

    r21232 r23446  
    11#!/bin/sh
    22TMP=/tmp/.infos
    3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
    4         SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    5         FREE=`expr $SPACE - 100`
    6         echo new freespace size $FREE kb
    7 else
    8         echo "syncing disk"
    9         sync
    10 fi
    11 echo "removing autotimer Plugin"
     3INSTDIR="$1"
     4PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/autotimer
     5
    126exit 0
Note: See TracChangeset for help on using the changeset viewer.