Ignore:
Timestamp:
Sep 8, 2013, 6:07:57 PM (13 years ago)
Author:
gost
Message:

[plugin] LCDPearl1 new tpk

File:
1 edited

Legend:

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

    r15994 r23448  
    11#!/bin/sh
    22TMP=/tmp/.TOOLS
     3INSTDIR="$1" 
     4PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/lcdpearl1
    35
    4 rm -rf /var/swap/titanplugins/lcdpearl1
     6rm -rf $PLUGINDIR
    57rm -rf /var/etc/lcd4linux.conf
    6 rm -rf /var/usr/local/share/titan/plugins/lcdpearl1
    78
    8 echo "successfully removed"
    9 link=`readlink /var/swap`
    10 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    11         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    12         FREE=`expr $SPACE - 100`
    13         echo new freespace size $FREE kb
    14 else
    15         echo "syncing disk"
    16         sync
    17 fi
    189exit 0
Note: See TracChangeset for help on using the changeset viewer.