| [24506] | 1 | #!/bin/sh
|
|---|
| 2 | INSTDIR="$1"
|
|---|
| 3 |
|
|---|
| [24545] | 4 | sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/oscamOSEmu.emu"
|
|---|
| [24506] | 5 |
|
|---|
| 6 | if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
|
|---|
| [24545] | 7 | sed s#_type_#"MNT"#g -i "$INSTDIR/etc/oscamOSEmu.emu"
|
|---|
| [24506] | 8 | elif [ "/var/swap" == "$INSTDIR" ]; then
|
|---|
| [24545] | 9 | sed s#_type_#"SWAP"#g -i "$INSTDIR/etc/oscamOSEmu.emu"
|
|---|
| [24506] | 10 | else
|
|---|
| [24545] | 11 | sed s#_type_#"VAR"#g -i "$INSTDIR/etc/oscamOSEmu.emu"
|
|---|
| [24506] | 12 | fi
|
|---|
| 13 |
|
|---|
| 14 | if [ ! -e "$INSTDIR/keys/oscam.conf" ]; then
|
|---|
| [24533] | 15 | echo "use tpk config file: oscam.conf"
|
|---|
| [24506] | 16 | echo "rename $INSTDIR/keys/oscam.conf.oscam > $INSTDIR/keys/oscam.conf"
|
|---|
| 17 | mv "$INSTDIR/keys/oscam.conf.oscam" "$INSTDIR/keys/oscam.conf"
|
|---|
| 18 | else
|
|---|
| 19 | echo "found user config file: oscam.conf"
|
|---|
| [24533] | 20 | echo "skip tpk config file: oscam.conf.oscam"
|
|---|
| [24506] | 21 | fi
|
|---|
| 22 |
|
|---|
| 23 | if [ ! -e "$INSTDIR/keys/oscam.provid" ]; then
|
|---|
| [24533] | 24 | echo "use tpk config file: oscam.provid"
|
|---|
| [24506] | 25 | echo "rename $INSTDIR/keys/oscam.provid.oscam > $INSTDIR/keys/oscam.provid"
|
|---|
| 26 | mv "$INSTDIR/keys/oscam.provid.oscam" "$INSTDIR/keys/oscam.provid"
|
|---|
| 27 | else
|
|---|
| 28 | echo "found user config file: oscam.provid"
|
|---|
| [24533] | 29 | echo "skip tpk config file: oscam.provid.oscam"
|
|---|
| [24506] | 30 | fi
|
|---|
| 31 |
|
|---|
| 32 | if [ ! -e "$INSTDIR/keys/oscam.srvid" ]; then
|
|---|
| [24533] | 33 | echo "use tpk config file: oscam.srvid"
|
|---|
| [24506] | 34 | echo "rename $INSTDIR/keys/oscam.srvid.oscam > $INSTDIR/keys/oscam.srvid"
|
|---|
| 35 | mv "$INSTDIR/keys/oscam.srvid.oscam" "$INSTDIR/keys/oscam.srvid"
|
|---|
| 36 | else
|
|---|
| 37 | echo "found user config file: oscam.srvid"
|
|---|
| [24533] | 38 | echo "skip tpk config file: oscam.srvid.oscam"
|
|---|
| [24506] | 39 | fi
|
|---|
| 40 |
|
|---|
| 41 | if [ ! -e "$INSTDIR/keys/oscam.server" ]; then
|
|---|
| [24533] | 42 | echo "use tpk config file: oscam.server"
|
|---|
| [24506] | 43 | echo "rename $INSTDIR/keys/oscam.server.oscam > $INSTDIR/keys/oscam.server"
|
|---|
| 44 | mv "$INSTDIR/keys/oscam.server.oscam" "$INSTDIR/keys/oscam.server"
|
|---|
| 45 | else
|
|---|
| 46 | echo "found user config file: oscam.server"
|
|---|
| [24533] | 47 | echo "skip tpk config file: oscam.server.oscam"
|
|---|
| [24506] | 48 | fi
|
|---|
| 49 |
|
|---|
| 50 | if [ ! -e "$INSTDIR/keys/oscam.user" ]; then
|
|---|
| [24533] | 51 | echo "use tpk config file: oscam.user"
|
|---|
| [24506] | 52 | echo "rename $INSTDIR/keys/oscam.user.oscam > $INSTDIR/keys/oscam.user"
|
|---|
| 53 | mv "$INSTDIR/keys/oscam.user.oscam" "$INSTDIR/keys/oscam.user"
|
|---|
| 54 | else
|
|---|
| 55 | echo "found user config file: oscam.user"
|
|---|
| [24533] | 56 | echo "skip tpk config file: oscam.user.oscam"
|
|---|
| [24506] | 57 | fi
|
|---|
| 58 |
|
|---|
| 59 | if [ ! -e "$INSTDIR/keys/oscam.services" ]; then
|
|---|
| [24533] | 60 | echo "use tpk config file: oscam.services"
|
|---|
| [24506] | 61 | echo "rename $INSTDIR/keys/oscam.services.oscam > $INSTDIR/keys/oscam.services"
|
|---|
| 62 | mv "$INSTDIR/keys/oscam.services.oscam" "$INSTDIR/keys/oscam.services"
|
|---|
| 63 | else
|
|---|
| 64 | echo "found user config file: oscam.services"
|
|---|
| [24533] | 65 | echo "skip tpk config file: oscam.services.oscam"
|
|---|
| [24506] | 66 | fi
|
|---|
| 67 |
|
|---|
| 68 | if [ ! -e "$INSTDIR/keys/oscam.dvbapi" ]; then
|
|---|
| [24533] | 69 | echo "use tpk config file: oscam.dvbapi"
|
|---|
| [24506] | 70 | echo "rename $INSTDIR/keys/oscam.dvbapi.oscam > $INSTDIR/keys/oscam.dvbapi"
|
|---|
| 71 | mv "$INSTDIR/keys/oscam.dvbapi.oscam" "$INSTDIR/keys/oscam.dvbapi"
|
|---|
| 72 | else
|
|---|
| 73 | echo "found user config file: oscam.dvbapi"
|
|---|
| [24533] | 74 | echo "skip tpk config file: oscam.dvbapi.oscam"
|
|---|
| [24506] | 75 | fi
|
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 | exit 0
|
|---|