source: ipk/source.sh4/titanswapskins_0Acht5Zehn/CONTROL/postrm@ 20735

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

[ipk] fix

  • Property svn:executable set to *
File size: 500 bytes
RevLine 
[10923]1#!/bin/sh
2TMP=/tmp/.skin
3
[11067]4PLUGINDIR=/var/swap/titanskins/0Acht5Zehn
[15994]5rm -rf /var/swap/titanskins/0Acht5Zehn
[10923]6
7echo "successfully removed"
[12781]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`
[10923]11 FREE=`expr $SPACE - 100`
12 echo new freespace size $FREE kb
[12781]13else
14 echo "syncing disk"
15 sync
[10923]16fi
17exit 0
Note: See TracBrowser for help on using the repository browser.