source: ipk/source.mipsel/emus_gbox_804/CONTROL/postinst @ 27863

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

fix

File size: 1.9 KB
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4sed s#var#"$INSTDIR"#g -i "$INSTDIR/etc/gbox_804.emu"
5sed s#var#"$INSTDIR"#g -i "$INSTDIR/bin/gbox_804.emu"
6
7if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
8        sed s#var#"MNT"#g -i "$INSTDIR/etc/gbox_804.emu"
9elif [ "/var/swap" == "$INSTDIR" ]; then
10        sed s#var#"SWAP"#g -i "$INSTDIR/etc/gbox_804.emu"
11else
12        sed s#var#"VAR"#g -i "$INSTDIR/etc/gbox_804.emu"       
13fi
14
15if [ ! -e "$INSTDIR/keys/cwshare.cfg" ]; then
16        echo "use ipk config file: cwshare.cfg"
17        echo "rename $INSTDIR/keys/cwshare.cfg.gbox > $INSTDIR/keys/cwshare.cfg"
18        mv -f "$INSTDIR/keys/cwshare.cfg.gbox" "$INSTDIR/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 "$INSTDIR/keys/ignore.list" ]; then
25        echo "use ipk config file: ignore.list"
26        echo "rename $INSTDIR/keys/ignore.list.gbox > $INSTDIR/keys/ignore.list"
27        mv -f "$INSTDIR/keys/ignore.list.gbox" "$INSTDIR/keys/ignore.list"
28else
29        echo "found user config file: ignore.list"
30        echo "skip ipk config file: ignore.list.gbox"
31fi
32
33if [ ! -e "$INSTDIR/keys/nagra" ]; then
34        echo "use ipk config file: nagra"
35        echo "rename $INSTDIR/keys/nagra.gbox > $INSTDIR/keys/nagra"
36        mv -f "$INSTDIR/keys/nagra.gbox" "$INSTDIR/keys/nagra"
37else
38        echo "found user config file: nagra"
39        echo "skip ipk config file: nagra.gbox"
40fi
41
42if [ ! -e "$INSTDIR/keys/softcam.cfg" ]; then
43        echo "use ipk config file: softcam.cfg"
44        echo "rename $INSTDIR/keys/softcam.cfg.gbox > $INSTDIR/keys/softcam.cfg"
45        mv -f "$INSTDIR/keys/softcam.cfg.gbox" "$INSTDIR/keys/softcam.cfg"
46else
47        echo "found user config file: softcam.cfg"
48        echo "skip ipk config file: softcam.cfg.gbox"
49fi
50
51if [ ! -e "$INSTDIR/bin/gbox_cfg" ]; then
52        echo "use ipk config file: gbox_cfg"
53        echo "rename $INSTDIR/bin/gbox_cfg.gbox > $INSTDIR/bin/gbox_cfg"
54        mv -f "$INSTDIR/bin/gbox_cfg.gbox" "$INSTDIR/bin/gbox_cfg"
55else
56        echo "found user config file: gbox_cfg"
57        echo "skip ipk config file: gbox_cfg.gbox"
58fi
59
60exit 0
Note: See TracBrowser for help on using the repository browser.