source: ipk/source.sh4/emus_gbox_773/CONTROL/postinst @ 7451

Last change on this file since 7451 was 7451, checked in by BPanther, 13 years ago

[ipk] - copy source->source.sh4

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/sh
2TMP=/tmp/.keys
3PLUGINDIR=/var/keys
4PLUGINDIR=/var/bin
5CONFIGDIR=/var/etc
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
15if [ ! -e /var/keys/cwshare.cfg ]; then
16        echo "use ipk config file: cwshare.cfg"
17        echo "rename /var/keys/cwshare.cfg.gbox > /var/keys/cwshare.cfg"
18        mv /var/keys/cwshare.cfg.gbox /var/keys/cwshare.cfg
19else
20        echo "found user config file: cwshare.cfg"
21        echo "skip ipk config file: cwshare.cfg.gbox"
22fi
23
24if [ ! -e /var/keys/gbox_cfg ]; then
25        echo "use ipk config file: gbox_cfg"
26        echo "rename /var/keys/gbox_cfg.gbox > /var/keys/gbox_cfg"
27        mv /var/keys/gbox_cfg.gbox /var/keys/gbox_cfg
28else
29        echo "found user config file: gbox_cfg"
30        echo "skip ipk config file: gbox_cfg.gbox"
31fi
32
33if [ ! -e /var/keys/ignore.list ]; then
34        echo "use ipk config file: ignore.list"
35        echo "rename /var/keys/ignore.list.gbox > /var/keys/ignore.list"
36        mv /var/keys/ignore.list.gbox /var/keys/ignore.list
37else
38        echo "found user config file: ignore.list"
39        echo "skip ipk config file: ignore.list.gbox"
40fi
41
42if [ ! -e /var/keys/softcam.cfg ]; then
43        echo "use ipk config file: softcam.cfg"
44        echo "rename /var/keys/softcam.cfg.gbox > /var/keys/softcam.cfg"
45        mv /var/keys/softcam.cfg.gbox /var/keys/softcam.cfg
46else
47        echo "found user config file: softcam.cfg"
48        echo "skip ipk config file: softcam.cfg.gbox"
49fi
50
51exit 0
Note: See TracBrowser for help on using the repository browser.