source: ipk/source/emus_kbox_1_01pre24/CONTROL/prerm@ 6734

Last change on this file since 6734 was 6663, checked in by madie, 15 years ago

[ipk] fix emu control files for new emu.sh

  • Property svn:executable set to *
File size: 656 bytes
RevLine 
[521]1#!/bin/sh
[6663]2TMP=/tmp/.keys
[521]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
[6663]10
[521]11if [ ! -e /var/keys/cwshare.cfg.kbox ]; then
[6663]12 echo "remove ipk cwshare.cfg"
13 rm /var/keys/cwshare.cfg
[521]14fi
[6663]15
[521]16if [ ! -e /var/keys/kbox_cfg.kbox ]; then
[6663]17 echo "remove ipk kbox_cfg"
18 rm /var/keys/kbox_cfg
[521]19fi
[6663]20
[521]21if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then
[6663]22 echo "remove ipk nwcdcs.cfg"
23 rm /var/keys/nwcdcs.cfg
[521]24fi
[6663]25
26echo "removing kbox and configs"
[521]27exit 0
Note: See TracBrowser for help on using the repository browser.