source: ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/postrm@ 22019

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

[ipk] fix

  • Property svn:executable set to *
File size: 506 bytes
RevLine 
[12581]1#!/bin/sh
[15803]2TMP=/tmp/.tmp
[12581]3
[15994]4rm -rf /var/swap/titanplugins/browser
[15961]5rm -rf /var/usr/local/share/titan/plugins/browser
[15803]6
[12581]7echo "successfully removed"
[15803]8link=`readlink /var/swap`
9if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
10 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
[12581]11 FREE=`expr $SPACE - 100`
12 echo new freespace size $FREE kb
[12781]13else
14 echo "syncing disk"
15 sync
[12581]16fi
17exit 0
Note: See TracBrowser for help on using the repository browser.