source: ipk/source.sh4/emus_kbox_1_01pre24/CONTROL/prerm@ 7451

Last change on this file since 7451 was 7451, checked in by BPanther, 15 years ago

[ipk] - copy source->source.sh4

  • Property svn:executable set to *
File size: 656 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.keys
3echo "syncing disk"
4sync
5if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
7 FREE=`expr $SPACE - 100`
8 echo freespace size $FREE kb
9fi
10
11if [ ! -e /var/keys/cwshare.cfg.kbox ]; then
12 echo "remove ipk cwshare.cfg"
13 rm /var/keys/cwshare.cfg
14fi
15
16if [ ! -e /var/keys/kbox_cfg.kbox ]; then
17 echo "remove ipk kbox_cfg"
18 rm /var/keys/kbox_cfg
19fi
20
21if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then
22 echo "remove ipk nwcdcs.cfg"
23 rm /var/keys/nwcdcs.cfg
24fi
25
26echo "removing kbox and configs"
27exit 0
Note: See TracBrowser for help on using the repository browser.