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