Ignore:
Timestamp:
Sep 8, 2013, 11:28:46 AM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

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

    r14839 r23443  
    11#!/bin/sh
    2 TMP=/tmp/.games
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/wins3
    4 rm -r $PLUGINDIR > /dev/null 2>&1
    52
    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
    153exit 0
Note: See TracChangeset for help on using the changeset viewer.