source: ipk/source.sh4/titanswapskins_tobayer01/CONTROL/postrm@ 23201

Last change on this file since 23201 was 23201, checked in by tobayer, 13 years ago

[titan] tobayer01 swapskin: test release/beta handling

File size: 505 bytes
Line 
1#!/bin/sh
2
3plugin="tobayer01 swapskin"
4plugindir="/var/swap/titanskins/tobayer01"
5link=`readlink /var/swap`
6
7rm -rf $plugindir
8
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`
11 FREE=`expr $SPACE - 100`
12 echo "New free space: $FREE kb"
13else
14 #echo "syncing disk"
15 sync
16fi
17
18echo "Successfully removed $plugin"
19
20exit 0
Note: See TracBrowser for help on using the repository browser.