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

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

fix IPK Build

  • Property svn:executable set to *
File size: 746 bytes
Line 
1#!/bin/sh
2#
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
10echo "remove kbox"
11if [ ! -e /var/keys/cwshare.cfg.kbox ]; then
12 echo "rename cwshare.cfg -> cwshare.cfg.kbox"
13 mv /var/keys/cwshare.cfg /var/keys/cwshare.cfg.kbox
14fi
15if [ ! -e /var/keys/kbox_cfg.kbox ]; then
16 echo "rename kbox_cfg -> kbox_cfg.kbox"
17 mv /var/keys/kbox_cfg /var/keys/kbox_cfg.kbox
18fi
19if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then
20 echo "rename nwcdcs.cfg -> nwcdcs.cfg.kbox"
21 mv /var/keys/nwcdcs.cfg /var/keys/nwcdcs.cfg.kbox
22fi
23exit 0
Note: See TracBrowser for help on using the repository browser.