source: ipk/source/swapnetwork_wlan_300/CONTROL/postrm@ 6560

Last change on this file since 6560 was 6523, checked in by capt_bluebaer, 15 years ago

[ipk] Initial release, it's provided only for ufs910. if other 41-kernel-boxes should be supported, please edit the file preinst in the CONTROL dir for the corresponding box

  • Property svn:executable set to *
File size: 350 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.wlan
3
4echo "successfully removed"
5
6echo "syncing disk"
7sync
8
9if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
10 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
11 FREE=`expr $SPACE - 100`
12 echo new freespace size $FREE kb
13fi
14exit 0
Note: See TracBrowser for help on using the repository browser.