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

Last change on this file since 7091 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: 1.2 KB
RevLine 
[521]1#!/bin/sh
[6663]2TMP=/tmp/.keys
3PLUGINDIR=/var/keys
4PLUGINDIR=/var/bin
[521]5CONFIGDIR=/var/etc
[6663]6echo "successfully installed"
7echo "syncing disk"
8sync
9if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
10 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
11 FREE=`expr $SPACE - 100`
12 echo new freespace size $FREE kb
13fi
14
[521]15if [ ! -e /var/keys/cwshare.cfg ]; then
[6663]16 echo "use ipk config file: cwshare.cfg"
17 echo "rename /var/keys/cwshare.cfg.kbox > /var/keys/cwshare.cfg"
[521]18 mv /var/keys/cwshare.cfg.kbox /var/keys/cwshare.cfg
[6663]19else
20 echo "found user config file: cwshare.cfg"
21 echo "skip ipk config file: cwshare.cfg.kbox"
[521]22fi
[6663]23
[521]24if [ ! -e /var/keys/kbox_cfg ]; then
[6663]25 echo "use ipk config file: kbox_cfg"
26 echo "rename /var/keys/kbox_cfg.kbox > /var/keys/kbox_cfg"
[521]27 mv /var/keys/kbox_cfg.kbox /var/keys/kbox_cfg
[6663]28else
29 echo "found user config file: kbox_cfg"
30 echo "skip ipk config file: kbox_cfg.kbox"
[521]31fi
[6663]32
[521]33if [ ! -e /var/keys/nwcdcs.cfg ]; then
[6663]34 echo "use ipk config file: nwcdcs.cfg"
35 echo "rename /var/keys/nwcdcs.cfg.kbox > /var/keys/nwcdcs.cfg"
[521]36 mv /var/keys/nwcdcs.cfg.kbox /var/keys/nwcdcs.cfg
[6663]37else
38 echo "found user config file: nwcdcs.cfg"
39 echo "skip ipk config file: nwcdcs.cfg.kbox"
[521]40fi
[6663]41
[521]42exit 0
Note: See TracBrowser for help on using the repository browser.