source: ipk/source.mipsel/emus_cccam_2011/CONTROL/postinst @ 27799

Last change on this file since 27799 was 27799, checked in by andyjetset, 9 years ago

add cc2011

File size: 1.0 KB
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/CCcam_2011.emu"
5sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/bin/CCcam_2011.emu"
6
7if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
8        sed s#_type_#"MNT"#g -i "$INSTDIR/etc/CCcam_2011.emu"
9elif [ "/var/swap" == "$INSTDIR" ]; then
10        sed s#_type_#"SWAP"#g -i "$INSTDIR/etc/CCcam_2011.emu"
11else
12        sed s#_type_#"VAR"#g -i "$INSTDIR/etc/CCcam_2011.emu"   
13fi
14
15if [ ! -e "$INSTDIR/keys/CCcam.cfg" ]; then
16        echo "use ipk config file: CCcam.cfg"
17        echo "rename $INSTDIR/keys/CCcam.cfg.CCcam > $INSTDIR/keys/CCcam.cfg"
18        mv -f "$INSTDIR/keys/CCcam.cfg.CCcam" "$INSTDIR/keys/CCcam.cfg"
19else
20        echo "found user config file: CCcam.cfg"
21        echo "skip ipk config file: CCcam.cfg.CCcam"
22fi
23
24if [ ! -e "$INSTDIR/keys/SoftCam.Key" ]; then
25        echo "use ipk config file: SoftCam.Key"
26        echo "rename $INSTDIR/keys/SoftCam.Key.CCcam > $INSTDIR/keys/SoftCam.Key"
27        mv -f "$INSTDIR/keys/SoftCam.Key.CCcam" "$INSTDIR/keys/SoftCam.Key"
28else
29        echo "found user config file: SoftCam.Key"
30        echo "skip ipk config file: SoftCam.Key.CCcam"
31fi
32
33exit 0
Note: See TracBrowser for help on using the repository browser.