source: ipk/source.sh4/emus_OScam_Expert/CONTROL/postinst @ 29953

Last change on this file since 29953 was 29953, checked in by Bulldog, 6 years ago

[tpk] New OScam Expert rev 9848
0x07 patched, all EMM blocked
for V13 & V14 Cards

File size: 3.3 KB
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/oscam.emu"
5sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/bin/oscam.emu"
6
7if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
8        sed s#_type_#"MNT"#g -i "$INSTDIR/etc/oscam.emu"
9elif [ "/var/swap" == "$INSTDIR" ]; then
10        sed s#_type_#"SWAP"#g -i "$INSTDIR/etc/oscam.emu"
11else
12        sed s#_type_#"VAR"#g -i "$INSTDIR/etc/oscam.emu"       
13fi
14
15if [ ! -e "$INSTDIR/keys/oscam.conf" ]; then
16        echo "use tpk config file: oscam.conf"
17        echo "rename $INSTDIR/keys/oscam.conf.oscam > $INSTDIR/keys/oscam.conf"
18        mv "$INSTDIR/keys/oscam.conf.oscam" "$INSTDIR/keys/oscam.conf"
19else
20        echo "found user config file: oscam.conf"
21        echo "skip tpk config file: oscam.conf.oscam"
22fi
23
24if [ ! -e "$INSTDIR/keys/oscam.provid" ]; then
25        echo "use tpk config file: oscam.provid"
26        echo "rename $INSTDIR/keys/oscam.provid.oscam > $INSTDIR/keys/oscam.provid"
27        mv "$INSTDIR/keys/oscam.provid.oscam" "$INSTDIR/keys/oscam.provid"
28else
29        echo "found user config file: oscam.provid"
30        echo "skip tpk config file: oscam.provid.oscam"
31fi
32
33if [ ! -e "$INSTDIR/keys/oscam.srvid" ]; then
34        echo "use tpk config file: oscam.srvid"
35        echo "rename $INSTDIR/keys/oscam.srvid.oscam > $INSTDIR/keys/oscam.srvid"
36        mv "$INSTDIR/keys/oscam.srvid.oscam" "$INSTDIR/keys/oscam.srvid"
37else
38        echo "found user config file: oscam.srvid"
39        echo "skip tpk config file: oscam.srvid.oscam"
40fi
41
42if [ ! -e "$INSTDIR/keys/oscam.server" ]; then
43        echo "use tpk config file: oscam.server"
44        echo "rename $INSTDIR/keys/oscam.server.oscam > $INSTDIR/keys/oscam.server"
45        mv "$INSTDIR/keys/oscam.server.oscam" "$INSTDIR/keys/oscam.server"
46else
47        echo "found user config file: oscam.server"
48        echo "skip tpk config file: oscam.server.oscam"
49fi
50
51if [ ! -e "$INSTDIR/keys/oscam.user" ]; then
52        echo "use tpk config file: oscam.user"
53        echo "rename $INSTDIR/keys/oscam.user.oscam > $INSTDIR/keys/oscam.user"
54        mv "$INSTDIR/keys/oscam.user.oscam" "$INSTDIR/keys/oscam.user"
55else
56        echo "found user config file: oscam.user"
57        echo "skip tpk config file: oscam.user.oscam"
58fi
59
60if [ ! -e "$INSTDIR/keys/oscam.services" ]; then
61        echo "use tpk config file: oscam.services"
62        echo "rename $INSTDIR/keys/oscam.services.oscam > $INSTDIR/keys/oscam.services"
63        mv "$INSTDIR/keys/oscam.services.oscam" "$INSTDIR/keys/oscam.services"
64else
65        echo "found user config file: oscam.services"
66        echo "skip tpk config file: oscam.services.oscam"
67fi
68
69if [ ! -e "$INSTDIR/keys/oscam.dvbapi" ]; then
70        echo "use tpk config file: oscam.dvbapi"
71        echo "rename $INSTDIR/keys/oscam.dvbapi.oscam > $INSTDIR/keys/oscam.dvbapi"
72        mv "$INSTDIR/keys/oscam.dvbapi.oscam" "$INSTDIR/keys/oscam.dvbapi"
73else
74        echo "found user config file: oscam.dvbapi"
75        echo "skip tpk config file: oscam.dvbapi.oscam"
76fi
77
78if [ ! -e "$INSTDIR/keys/oscam.whitelist" ]; then
79        echo "use tpk config file: oscam.whitelist"
80        echo "rename $INSTDIR/keys/oscam.whitelist.oscam > $INSTDIR/keys/oscam.whitelist"
81        mv "$INSTDIR/keys/oscam.whitelist.oscam" "$INSTDIR/keys/oscam.whitelist"
82else
83        echo "found user config file: oscam.whitelist"
84        echo "skip tpk config file: oscam.whitelist.oscam"
85fi
86
87if [ ! -e "$INSTDIR/keys/oscam.tiers" ]; then
88        echo "use tpk config file: oscam.tiers"
89        echo "rename $INSTDIR/keys/oscam.tiers.oscam > $INSTDIR/keys/oscam.tiers"
90        mv "$INSTDIR/keys/oscam.tiers.oscam" "$INSTDIR/keys/oscam.tiers"
91else
92        echo "found user config file: oscam.tiers"
93        echo "skip tpk config file: oscam.tiers.oscam"
94fi
95
96exit 0
Note: See TracBrowser for help on using the repository browser.