source: ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postrm@ 18635

Last change on this file since 18635 was 15994, checked in by obi, 14 years ago

[ipk] fix

  • Property svn:executable set to *
File size: 543 bytes
RevLine 
[13129]1#!/bin/sh
2TMP=/tmp/.TOOLS
3
[15994]4rm -rf /var/swap/titanplugins/lcdpearl1
5rm -rf /var/etc/lcd4linux.conf
[15966]6rm -rf /var/usr/local/share/titan/plugins/lcdpearl1
[13129]7
8echo "successfully removed"
9link=`readlink /var/swap`
10if [ `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
14else
15 echo "syncing disk"
16 sync
17fi
18exit 0
Note: See TracBrowser for help on using the repository browser.