source: ipk/source/emus_kbox_1_01pre24/CONTROL/postinst@ 3473

Last change on this file since 3473 was 521, checked in by civer, 16 years ago

-added all latest ipk sources

File size: 794 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.kbox
3PLUGINDIR=/var/emu
4CONFIGDIR=/var/etc
5if [ ! -e /var/keys/cwshare.cfg ]; then
6 echo "rename cwshare.cfg.kbox -> cwshare.cfg"
7 mv /var/keys/cwshare.cfg.kbox /var/keys/cwshare.cfg
8fi
9if [ ! -e /var/keys/kbox_cfg ]; then
10 echo "rename kbox_cfg.kbox -> kbox_cfg"
11 mv /var/keys/kbox_cfg.kbox /var/keys/kbox_cfg
12fi
13if [ ! -e /var/keys/nwcdcs.cfg ]; then
14 echo "rename nwcdcs.cfg.kbox -> nwcdcs.cfg"
15 mv /var/keys/nwcdcs.cfg.kbox /var/keys/nwcdcs.cfg
16fi
17echo "successful installed"
18echo "syncing disk"
19sync
20if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
21 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
22 FREE=`expr $SPACE - 100`
23 echo new freespace size $FREE kb
24fi
25exit 0
Note: See TracBrowser for help on using the repository browser.