source: ipk/source.sh4/emus_wicardd_1_15/CONTROL/postinst @ 33403

Last change on this file since 33403 was 33403, checked in by schpuntik, 6 years ago

add emu wicardd 1.15 thx ser6

  • Property svn:executable set to *
File size: 518 bytes
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/wicardd.emu"
5
6if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
7        sed s#_type_#"MNT"#g -i "$INSTDIR/etc/wicardd.emu"
8elif [ "/var/swap" == "$INSTDIR" ]; then
9        sed s#_type_#"SWAP"#g -i "$INSTDIR/etc/wicardd.emu"
10else
11        sed s#_type_#"VAR"#g -i "$INSTDIR/etc/wicardd.emu"     
12fi
13
14if [ ! -e "$INSTDIR/keys/wicardd.conf" ]; then
15        echo "rename wicardd.conf.wicardd -> wicardd.conf"
16        mv "$INSTDIR/keys/wicardd.conf.wicardd" "$INSTDIR/keys/wicardd.conf"
17fi
18
19exit 0
Note: See TracBrowser for help on using the repository browser.