source: ipk/source.sh4/swapemus_gbox800/CONTROL/postrm@ 9336

Last change on this file since 9336 was 9336, checked in by andy-1, 15 years ago

fix

File size: 1012 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.keys
3TMP=/tmp/.gbox
4echo "syncing disk"
5sync
6if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
7 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
8 FREE=`expr $SPACE - 100`
9 echo freespace size $FREE kb
10fi
11
12if [ ! -e /var/swap/keys/nagra.gbox ]; then
13 echo "remove ipk nagra"
14 rm /var/swap/keys/nagra
15fi
16
17if [ ! -e /var/swap/keys/cwshare.cfg.gbox ]; then
18 echo "remove ipk cwshare.cfg"
19 rm /var/swap/keys/cwshare.cfg
20fi
21
22if [ ! -e /var/swap/keys/gbox_cfg.gbox ]; then
23 echo "remove ipk gbox_cfg"
24 rm /var/swap/keys/gbox_cfg
25fi
26
27if [ ! -e /var/swap/keys/ignore.list.gbox ]; then
28 echo "remove ipk ignore.list"
29 rm /var/swap/keys/ignore.list
30fi
31
32if [ ! -e /var/swap/keys/softcam.cfg.gbox ]; then
33 echo "remove ipk softcam.cfg"
34 rm /var/swap/keys/softcam.cfg
35fi
36
37if rm -r /var/swap/bin/gbox800_swap
38echo "successfully removed"
39echo "syncing disk"
40fi
41
42sync
43
44echo "removing gbox and configs"
45exit 0
Note: See TracBrowser for help on using the repository browser.