source: ipk/source.mipsel/emus_mgcamd_1_35/CONTROL/postinst @ 33457

Last change on this file since 33457 was 33457, checked in by Stephan, 8 years ago

skin and mgcamd fixes

File size: 2.6 KB
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/mgcamd_1.35.emu"
5
6if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
7        sed s#_type_#"MNT"#g -i "$INSTDIR/etc/mgcamd_1.35.emu"
8elif [ "/var/swap" == "$INSTDIR" ]; then
9        sed s#_type_#"SWAP"#g -i "$INSTDIR/etc/mgcamd_1.35.emu"
10else
11        sed s#_type_#"VAR"#g -i "$INSTDIR/etc/mgcamd_1.35.emu" 
12fi
13
14if [ ! -e "$INSTDIR/keys/cccamd.list" ]; then
15        echo "use ipk config file: cccamd.list"
16        echo "rename $INSTDIR/keys/cccamd.list.mgcamd > $INSTDIR/keys/cccamd.list"
17        mv "$INSTDIR/keys/cccamd.list.mgcamd" "$INSTDIR/keys/cccamd.list"
18else
19        echo "found user config file: cccamd.list"
20        echo "skip ipk config file: cccamd.list.mgcamd"
21fi
22
23if [ ! -e "$INSTDIR/keys/ignore.list" ]; then
24        echo "use ipk config file: ignore.list"
25        echo "rename $INSTDIR/keys/ignore.list.mgcamd > $INSTDIR/keys/ignore.list"
26        mv "$INSTDIR/keys/ignore.list.mgcamd" "$INSTDIR/keys/ignore.list"
27else
28        echo "found user config file: ignore.list"
29        echo "skip ipk config file: ignore.list.mgcamd"
30fi
31
32if [ ! -e "$INSTDIR/keys/mg_cfg" ]; then
33        echo "use ipk config file: mg_cfg"
34        echo "rename $INSTDIR/keys/mg_cfg.mgcamd > $INSTDIR/keys/mg_cfg"
35        mv "$INSTDIR/keys/mg_cfg.mgcamd" "$INSTDIR/keys/mg_cfg"
36else
37        echo "found user config file: mg_cfg"
38        echo "skip ipk config file: mg_cfg.mgcamd"
39fi
40
41if [ ! -e "$INSTDIR/keys/newcamd.list" ]; then
42        echo "use ipk config file: newcamd.list"
43        echo "rename $INSTDIR/keys/newcamd.list.mgcamd > $INSTDIR/keys/newcamd.list"
44        mv "$INSTDIR/keys/newcamd.list.mgcamd" "$INSTDIR/keys/newcamd.list"
45else
46        echo "found user config file: newcamd.list"
47        echo "skip ipk config file: newcamd.list.mgcamd"
48fi
49
50if [ ! -e "$INSTDIR/keys/peer.cfg" ]; then
51        echo "use ipk config file: peer.cfg"
52        echo "rename $INSTDIR/keys/peer.cfg.mgcamd > $INSTDIR/keys/peer.cfg"
53        mv "$INSTDIR/keys/peer.cfg.mgcamd" "$INSTDIR/keys/peer.cfg"
54else
55        echo "found user config file: peer.cfg"
56        echo "skip ipk config file: peer.cfg.mgcamd"
57fi
58
59if [ ! -e "$INSTDIR/keys/priority.list" ]; then
60        echo "use ipk config file: priority.list"
61        echo "rename $INSTDIR/keys/priority.list.mgcamd > $INSTDIR/keys/priority.list"
62        mv "$INSTDIR/keys/priority.list.mgcamd" "$INSTDIR/keys/priority.list"
63else
64        echo "found user config file: priority.list"
65        echo "skip ipk config file: priority.list.mgcamd"
66fi
67
68if [ ! -e "$INSTDIR/keys/replace.list" ]; then
69        echo "use ipk config file: replace.list"
70        echo "rename $INSTDIR/keys/replace.list.mgcamd > $INSTDIR/keys/replace.list"
71        mv "$INSTDIR/keys/replace.list.mgcamd" "$INSTDIR/keys/replace.list"
72else
73        echo "found user config file: replace.list"
74        echo "skip ipk config file: replace.list.mgcamd"
75fi
76
77ln -snf "$INSTDIR/keys" /var/keys
78
79exit 0
Note: See TracBrowser for help on using the repository browser.